v4.21.0 #459
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: | |
push: | |
branches: | |
- "**" | |
workflow_dispatch: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
# Service containers to run with `container-job` | |
services: | |
postgres: | |
# Docker Hub image | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: somethingsecretfortesting | |
POSTGRES_USER: gram-test | |
ports: | |
- 5433:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: "Clean install" | |
shell: bash | |
run: npm ci | |
- name: "Build" | |
shell: bash | |
run: npm run build | |
- name: "Test" | |
shell: bash | |
run: npm test | |
- name: "Lint" | |
shell: bash | |
run: npm run lint |