Skip to content

Merge pull request #926 from MuckRock/allanlasser/issue924 #429

Merge pull request #926 from MuckRock/allanlasser/issue924

Merge pull request #926 from MuckRock/allanlasser/issue924 #429

Workflow file for this run

name: Unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run build
env:
NODE_ENV: production
- run: npm run test:coverage
- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run build
env:
NODE_ENV: production
- run: npm run check