Bump package version to 3.0.1 #20
Workflow file for this run
This file contains 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: ESlint sarif formatter test workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'packages/eslint-formatter-sarif/**' | |
workflow_dispatch: | |
jobs: | |
eslint_sarif_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install ESLint | |
run: | | |
npm install eslint | |
npm install @microsoft/sarif-multitool | |
- name: Install ESLint SARIF formatter dependencies | |
run: npm install | |
- name: Run local eslint + sarif formatter | |
run: npx eslint ./packages/eslint-formatter-sarif | |
--ext .js,.jsx,.ts,.tsx | |
--format ./packages/eslint-formatter-sarif/sarif.js | |
--output-file eslint-results.sarif | |
continue-on-error: true | |
- name: Upload eslint results as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: eslint-results | |
path: eslint-results.sarif | |
- name: Validate sarif file | |
run: npx @microsoft/sarif-multitool validate eslint-results.sarif | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: eslint-results.sarif | |
wait-for-processing: true |