-
Notifications
You must be signed in to change notification settings - Fork 28
42 lines (40 loc) · 1.03 KB
/
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
39
40
41
42
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
strategy:
fail-fast: false
matrix:
app: [main, loan, lend, dao]
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/${{ matrix.app }}
- run: yarn run cy:run:e2e:${{ matrix.app }}
working-directory: tests
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-${{ matrix.app }}
path: tests/cypress/screenshots