Skip to content

Commit

Permalink
fix: workflow ci
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocorradini committed Oct 11, 2022
1 parent f102748 commit 4a3222e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
strategy:
matrix:
node-version: [14.x, 16.x]
env:
RUN_STEP: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -38,34 +36,34 @@ jobs:
run: npm run test:coverage
- name: Upload code coverage
uses: codecov/codecov-action@v3
if: ${{ env.RUN_STEP }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x'
- name: Check vulnerabilities
uses: snyk/actions/node@master
if: ${{ env.RUN_STEP }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: License scan
uses: fossas/fossa-action@main
if: ${{ env.RUN_STEP }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x'
with:
api-key: ${{ secrets.FOSSA_TOKEN }}
- name: Code analysis
uses: codacy/codacy-analysis-cli-action@master
if: ${{ env.RUN_STEP }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x'
with:
output: results.sarif
format: sarif
gh-code-scanning-compat: true
max-allowed-issues: 2147483647
- name: Upload code analysis results
uses: github/codeql-action/upload-sarif@main
if: ${{ env.RUN_STEP }}
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.node-version == '16.x'
with:
sarif_file: results.sarif

release:
needs: ci
if: ${{ startsWith(github.ref, 'refs/tags/') }}
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 4a3222e

Please sign in to comment.