harvey-dvla Pushed To main #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push To Branch | |
run-name: ${{github.actor}} Pushed To ${{github.ref_name}} | |
on: [push] | |
jobs: | |
BuildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: package-lock.json | |
- name: Install npm version 10 | |
run: npm i -g npm@10 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Audit | |
run: npm run audit --audit-level=moderate | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test |