-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.17 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
paths-ignore:
- "**/*.md"
- "./github/CODEOWNERS"
branches:
- main
permissions:
checks: write
contents: write
jobs:
run-ci:
name: Run Linting, Server and Client-side Tests
timeout-minutes: 8
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: Build and serve App Container
run: docker-compose -f "docker-compose.ci.yml" up -d
- name: Run linters
run: docker exec dev-directory_app_1 npm run lint:fix
- name: Run Jest tests
run: docker exec dev-directory_app_1 npm run test:ci -- --roots='./dist'
- name: Run migrations
run: docker exec dev-directory_app_1 npm run migrate
- name: Run Cypress tests
uses: cypress-io/github-action@v5.1.0
- name: Remove App Container
if: always()
run: docker-compose -f "docker-compose.ci.yml" down