Split out check-and-unit-test into separate workflow

This commit is contained in:
daz
2024-04-10 06:01:23 -06:00
parent bd3d4b0246
commit 8bac4a819c
3 changed files with 35 additions and 19 deletions

View File

@@ -0,0 +1,30 @@
name: CI-check-and-unit-test
on:
push:
permissions:
contents: read
jobs:
check-format-and-unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: sources/package-lock.json
- name: Check formatting and compile
run: |
npm install
npm run check
npm run compile
working-directory: sources
- name: Run unit tests
run: |
npm test
working-directory: sources