Skip to content

Removing invalid fallback helpUri #25

Removing invalid fallback helpUri

Removing invalid fallback helpUri #25

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