Fix linting issues #331
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 Pipeline | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
lint: | |
name: Lint everything | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Check if package-lock.json is up to date | |
run: npx --yes [email protected] | |
- name: Install dependencies | |
run: npm ci | |
- name: Run the linter | |
run: npm run lint | |
test: | |
name: Test everything | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run the tests | |
run: npm test | |
build: | |
name: Build everything | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run build scripts | |
run: npm run build | |
e2e: | |
name: End-to-End Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run e2e tests | |
run: | | |
docker compose -f server/docker-compose.ci.yaml build | |
cp server/.env.ci server/.env | |
docker compose -f server/docker-compose.ci.yaml up -d | |
npm run test:e2e -w=server | |
docker compose -f server/docker-compose.ci.yaml down |