-
Notifications
You must be signed in to change notification settings - Fork 162
54 lines (54 loc) · 1.48 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
name: Main CI
on:
pull_request:
push:
branches:
- master
jobs:
test-node:
strategy:
matrix:
node: ["14.x", "16.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm i -g pnpm@7.1.9
- name: Cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-packages-waffle-${{ matrix.node }}-{{ checksum "pnpm-lock.yaml" }}
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: setup-solc
run: sudo cp ./.github/workflows/solc /bin
- run: pnpm run build
- run: pnpm run test
docs-and-linter:
runs-on: ubuntu-latest
env:
working-directory: ./docs
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: dependencies
run: pip install -r requirements.txt
working-directory: ${{ env.working-directory }}
- name: Make html
run: make html
working-directory: ${{ env.working-directory }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16.14
- run: npm i -g pnpm@7.1.9
- run: pnpm install --frozen-lockfile
- name: linter
run: pnpm install && pnpm run lint