-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (86 loc) · 2.27 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on:
push:
branches:
- develop
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- develop
- main
schedule:
- cron: "0 0 * * *"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
FATHOM_SITE_ID: ${{ secrets.FATHOM_SITE_ID }}
FATHOM_API_KEY: ${{ secrets.FATHOM_API_KEY }}
HUSKY: "0"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --prefer-offline
- name: Run linter
run: yarn lint
unit-test:
name: Unit test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --prefer-offline
- name: Run tests
run: yarn test
size-limit:
name: Size limit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: latest
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --prefer-offline
- name: Check size limit
run: yarn size-limit
e2e-test:
name: Test e2e
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
id: setup-buildx
- name: Build testable host frontend image
run: docker-compose -f docker-compose.e2e.yaml --env-file .env.e2e up --build --exit-code-from synpress
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1