-
Notifications
You must be signed in to change notification settings - Fork 29
38 lines (36 loc) · 919 Bytes
/
ci.yaml
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
name: CI
on: [push]
jobs:
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 20
cache: yarn
- run: yarn set version stable
- run: yarn install --immutable
- run: yarn lint
- run: yarn format:check
cypress:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- run: yarn set version stable
- run: yarn install --immutable
- run: yarn run dev &
working-directory: apps/main
- run: yarn run cy:run:e2e
working-directory: tests
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-main
path: tests/cypress/screenshots