-
Notifications
You must be signed in to change notification settings - Fork 43
62 lines (55 loc) · 1.53 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
55
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
- stable
- 'release/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache node_modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-v${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Lerna bootstrap
run: yarn lerna bootstrap
- name: Build
run: yarn lerna run build
- name: Lint
run: yarn lint
- name: Test
id: tests
run: yarn test
- name: Coverage report upload
if: matrix.node == 'lts/*'
uses: codecov/codecov-action@v2
with:
files: ./packages/react-celo/coverage/clover.xml,./packages/walletconnect/coverage/clover.xml
fail_ci_if_error: true
verbose: true
# Uncomment the block blow (and the dry-run flag) when
# we are decided to use git tags to publish new versions
#
# - name: NPM Publish
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
# uses: JS-DevTools/npm-publish@v1
# with:
# token: TODO:${{ secrets.NPM_TOKEN }}
# check-version: true
# dry-run: true