2024-05-17 17:12:35 +01:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [ current ]
|
|
|
|
|
|
|
|
jobs:
|
2024-05-28 08:00:58 +01:00
|
|
|
check-lockfile:
|
|
|
|
name: check lockfile correctness
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Check that lockfile does not need an update
|
|
|
|
run: |
|
|
|
|
cp package-lock.json before.json
|
|
|
|
npm ci
|
|
|
|
npm i --package-lock-only
|
|
|
|
diff before.json package-lock.json
|
|
|
|
|
2024-05-17 17:12:35 +01:00
|
|
|
test-web:
|
|
|
|
name: web sanity check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run test script
|
|
|
|
run: .github/test.sh web
|
|
|
|
|
|
|
|
test-api:
|
|
|
|
name: api sanity check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run test script
|
2024-05-28 08:00:58 +01:00
|
|
|
run: .github/test.sh api
|