API model updates #3902
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- develop | |
env: | |
NODE_ENV: test | |
API_CLIENT_ID: approved-premises | |
API_CLIENT_SECRET: clientsecret | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.node-version' | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- name: Installing dependencies | |
run: npm install | |
- name: Building source | |
run: npm run build | |
- name: Run tests | |
id: test | |
run: script/test |