-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (42 loc) · 1.17 KB
/
main.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
name: Run tests on push
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: '14.17.0'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install
run: yarn install
- run: |
cd infrastructure
curl --proto '=https' --tlsv1.2 -sSf -y https://sh.rustup.rs | sh
export PATH="${HOME}/.cargo/bin:${PATH}"
rustup default stable
rustup target list --installed
rustup target add wasm32-unknown-unknown
sudo apt install build-essential
- name: Execute lint
run: yarn lint
- run: yarn build
- name: Execute tests
run: yarn run test