-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 813 Bytes
/
ci.yml
File metadata and controls
37 lines (35 loc) · 813 Bytes
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
name: "test"
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm clean-install
- name: "check format"
run: npm run format:check
- name: "check linter"
run: npx eslint .
- name: "audit"
run: npm audit
- name: "install dfx"
uses: dfinity/setup-dfx@main
- name: "install mops packages"
run: |
npm i -g ic-mops
mops install
- name: "run backend tests"
run: mops test
- name: "run frontend tests"
run: |
dfx start --background
dfx deploy
npm start & npm test
dfx stop