Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .eslintrc.js

This file was deleted.

Binary file removed .github/assets/annotation.png
Binary file not shown.
Binary file removed .github/assets/annotations.png
Binary file not shown.
Binary file removed .github/assets/context-panel.png
Binary file not shown.
Binary file removed .github/assets/data_info.png
Binary file not shown.
Binary file removed .github/assets/discovery.png
Binary file not shown.
Binary file removed .github/assets/error_drilldown.png
Binary file not shown.
Binary file removed .github/assets/errors_tab.png
Binary file not shown.
Binary file removed .github/assets/insights_tab.png
Binary file not shown.
Binary file removed .github/assets/line-decoration.png
Binary file not shown.
Binary file removed .github/assets/method-decleration-codelens.png
Binary file not shown.
Binary file removed .github/assets/method-name-tooltip-2.png
Binary file not shown.
Binary file removed .github/assets/method-name-tooltip.png
Binary file not shown.
Binary file removed .github/assets/tooltip.png
Binary file not shown.
Binary file removed .github/assets/usage.png
Binary file not shown.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
workflow_call:
outputs:
artifact-name:
value: ${{ jobs.build.outputs.artifact-name }}

jobs:
build:
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
outputs:
artifact-name: ${{ steps.get-artifact-name.outputs.artifact_name }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
id: setup-node
with:
node-version-file: ".nvmrc"
cache: "npm"

- run: npm ci

- run: npm run build

- name: Get artifact name
id: get-artifact-name
run: |
git fetch --tags
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
NAME="dist-${{ inputs.platform }}-$LATEST_TAG"
echo "ARTIFACT_NAME=$NAME" >> $GITHUB_ENV
echo "artifact_name=$NAME" >> $GITHUB_OUTPUT

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: dist/
25 changes: 0 additions & 25 deletions .github/workflows/compile.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint

on:
workflow_call:

jobs:
lint:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
id: setup-node
with:
node-version-file: ".nvmrc"
cache: "npm"

- run: npm ci

- name: Lint
run: npm run lint
66 changes: 0 additions & 66 deletions .github/workflows/publish.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Lint & build

on:
push:
branches:
- "main"
- "next"
# Github Actions don't support YAML anchors yet, so we have to repeat
# the paths-ignore in both push and pull_request events.
# More info: https://github.com/actions/runner/issues/1182
paths-ignore:
- ".husky/**"
- ".vscode/**"
- "LICENSE"
- "README.md"
pull_request:
branches:
- "main"
- "next"
paths-ignore:
- ".husky/**"
- ".vscode/**"
- "LICENSE"
- "README.md"

jobs:
lint:
name: Lint
permissions:
contents: read
uses: ./.github/workflows/lint.yml

build:
name: Build
permissions:
contents: read
actions: write
needs: lint
uses: ./.github/workflows/build.yml
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Lint & build & publish

on:
push:
tags:
- "v*.*.*"

jobs:
lint:
name: Lint
permissions:
contents: read
uses: ./.github/workflows/lint.yml

build-publish:
name: Build & Publish
runs-on: ubuntu-latest
permissions:
contents: write
actions: read
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"

- run: npm ci

- name: Get version
id: version
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT

- name: Bump version in package.json
run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version

- name: Publish to Visual Studio Marketplace
id: publishToVSMarketplace
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.OVSX_TOKEN }}

- name: Attach release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.publishToVSMarketplace.outputs.vsixPath }}
asset_name: digma-${{ steps.version.outputs.version }}.vsix
tag: ${{ github.ref }}
overwrite: true
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
.vscode-test/
node_modules/
out/
.eslintcache
*.vsix

.DS_Store

.idea/
*.vsix
3 changes: 0 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run precommit
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
24
7 changes: 1 addition & 6 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
digmaUi/
jaegerUi/
out/
package.json
package-lock.json
src/views-ui/common/jquery-3.6.0.min.js
src/views-ui/common/require-2.3.6.min.js
*.md
package-lock.json
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"trailingComma": "none",
"tabWidth": 4
"trailingComma": "none",
"tabWidth": 2
}
1 change: 0 additions & 1 deletion .stylelintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .stylelintrc

This file was deleted.

17 changes: 8 additions & 9 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint",
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker"
]
}
Loading
Loading