Skip to content

Commit

Permalink
chore: move audit away from test [no-ticket]
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Sep 10, 2024
1 parent 8b0741a commit c61909e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Audit App

on:
merge_group:
workflow_dispatch:
push:
branches:
- develop
pull_request:
types:
- opened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install packages
run: npm ci

- name: Audit packages
run: npm audit
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Install packages
run: npm ci

- name: Audit packages
run: npm audit

- name: Lint
run: npm run lint

Expand Down

0 comments on commit c61909e

Please sign in to comment.