-
Notifications
You must be signed in to change notification settings - Fork 2
115 lines (97 loc) · 2.45 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: CI
on:
pull_request:
branches: [ "master" ]
jobs:
frontend-checks:
name: frontend checks
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nostric
run: |
npm install
continue-on-error: false
- name: Prettier TypeScript check
run: |
npm run prettier
continue-on-error: false
- name: Prettier Svelte check
run: |
npm run prettier-svelte
continue-on-error: false
- name: ESLint TypeScript check
run: |
npm run lint
continue-on-error: false
- name: ESLint Svelte check
run: |
npm run lint-svelte
continue-on-error: false
backend-checks:
name: backend checks
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nostric
run: |
npm install
continue-on-error: false
- name: Prettier check
run: |
npm run prettier-motoko
continue-on-error: false
- name: Install Mops
run: |
npm install -g ic-mops
continue-on-error: false
- uses: dfinity/setup-dfx@main
with:
dfx-version: auto
env:
DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}
- run: |
dfx start --clean --background
continue-on-error: false
- name: Unit tests
run: |
mops test
continue-on-error: false
integration-test:
name: integration test
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nostric
run: |
npm install
continue-on-error: false
- name: Install Mops
run: |
npm install -g ic-mops
continue-on-error: false
- uses: dfinity/setup-dfx@main
with:
dfx-version: auto
env:
DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}
- run: |
dfx start --clean --background
continue-on-error: false
- name: Local deployment
run: |
bash deploy-local-ckbtc.sh
dfx deploy
continue-on-error: false