From c61909e1f32018830cc6e9ee57d98c9dd3800e92 Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Tue, 10 Sep 2024 19:38:30 +0100 Subject: [PATCH] chore: move audit away from test [no-ticket] --- .github/workflows/audit.yml | 37 +++++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 3 --- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000000..47895c687d9 --- /dev/null +++ b/.github/workflows/audit.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed0fcea3646..7dfbe3e26f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,9 +33,6 @@ jobs: - name: Install packages run: npm ci - - name: Audit packages - run: npm audit - - name: Lint run: npm run lint