port opa-explorer interface into in-vscode feature #817
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| npm install --include=dev | |
| - name: Test build package | |
| run: npx vsce package -o build.vsix | |
| lint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: "22.6.0" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run lint (dprint + eslint + typecheck + cspell + markdownlint) | |
| run: make lint | |
| continue-on-error: true | |
| # make lint can fail before eslint runs (e.g. dprint formatting check) | |
| - name: Upload analysis results to GitHub | |
| if: always() && hashFiles('eslint-results.sarif') != '' | |
| uses: github/codeql-action/upload-sarif@v4 | |
| with: | |
| sarif_file: eslint-results.sarif |