diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26fe3ac..698e183 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: strategy: matrix: os: [windows, ubuntu] - node-version: [12.x, 14.x, 15.x] + node-version: [14.x, 15.x, 16.x, 17.x] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/eslint-sarif-test.yml b/.github/workflows/eslint-sarif-test.yml index eb7beae..935202a 100644 --- a/.github/workflows/eslint-sarif-test.yml +++ b/.github/workflows/eslint-sarif-test.yml @@ -1,7 +1,7 @@ name: ESlint sarif formatter test workflow on: pull_request: - branches: + branches: - main paths: - 'packages/eslint-formatter-sarif/**' @@ -18,23 +18,23 @@ jobs: 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 + --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 diff --git a/package.json b/package.json index 262addb..13c3d2a 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "npm": false }, "volta": { - "node": "12.21.0", + "node": "14.19.1", "npm": "8.5.5" } } diff --git a/packages/eslint-formatter-sarif/package.json b/packages/eslint-formatter-sarif/package.json index d6a3fd0..4286f66 100644 --- a/packages/eslint-formatter-sarif/package.json +++ b/packages/eslint-formatter-sarif/package.json @@ -23,7 +23,7 @@ "eslint sarif" ], "engines": { - "node": ">= 12.11.*" + "node": ">= 14" }, "files": [ "sarif.js" diff --git a/packages/jest-sarif/package.json b/packages/jest-sarif/package.json index 2cf3c44..79f9379 100644 --- a/packages/jest-sarif/package.json +++ b/packages/jest-sarif/package.json @@ -21,7 +21,7 @@ "jest-sarif" ], "engines": { - "node": ">= 12.11.*" + "node": ">= 14" }, "files": [ "/lib" diff --git a/packages/sarif-builder/package.json b/packages/sarif-builder/package.json index 9b8c205..cefe96f 100644 --- a/packages/sarif-builder/package.json +++ b/packages/sarif-builder/package.json @@ -16,6 +16,6 @@ "test": "jest --passWithNoTests" }, "engines": { - "node": ">= 12.11.*" + "node": ">= 14" } }