-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.2 KB
/
package-sdk-pull-request-build-and-test.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: SDK/Push/PR - build and run tests
on:
push:
branches:
- main
- development
paths:
- 'packages/sdk/**'
- 'packages/chains/**'
- 'packages/types/**'
- '.github/workflows/package-sdk-pull-request-build-and-test.yml'
- 'yarn.lock'
pull_request:
branches:
- main
- development
paths:
- 'packages/sdk/**'
- 'packages/chains/**'
- 'packages/types/**'
- '.github/workflows/package-sdk-pull-request-build-and-test.yml'
- 'yarn.lock'
jobs:
build-lint-and-test-local:
env:
MNEMONIC: '${{ secrets.MNEMONIC }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 20
cache: 'yarn'
- name: Install NPM packages
run: yarn install
env:
# Fixes issue: `ethereumjs-abi: The remote archive doesn't match the expected checksum`
YARN_CHECKSUM_BEHAVIOR: update
- name: Build SDK
run: yarn build:sdk
- name: Run lint
run: yarn workspace @ionicprotocol/sdk lint
- name: Run mocha tests
run: yarn workspace @ionicprotocol/sdk test:mocha