v4.6.1 #158
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@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- 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 |