-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.06 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
name: test
on:
push:
branches: [master]
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
yarn-ci:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Install eosio.cdt
run: wget -q https://github.com/AntelopeIO/cdt/releases/download/v4.1.0/cdt_4.1.0-1_amd64.deb && sudo apt install ./cdt_4.1.0-1_amd64.deb
- name: 'Enable corepack'
run: corepack enable
- name: 'Install Foundry'
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-e649e62f125244a3ef116be25dfdc81a2afbaf2a
- name: 'Setup Node.js'
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
- name: 'Install'
run: yarn install
- name: 'Build'
run: yarn build
- name: 'Lint'
run: yarn lint
- name: 'Test'
run: yarn test