-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (45 loc) · 1.39 KB
/
unit-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
52
name: Unit Tests
on:
pull_request:
push:
branches:
- main
- development
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
# START: Temporary steps to install sdk-starter-kit
# This is only temporary until the `sdk-starter-kit` is public
# TODO: Remove these steps when the `sdk-starter-kit` is published to npm
- name: Checkout safe-core-sdk
uses: actions/checkout@v4
with:
repository: safe-global/safe-core-sdk
ref: e4126a12d7e9a1d6743afaaa2d1db16ff4c43a29
path: './safe-core-sdk'
- name: Yarn install safe-core-sdk
run: yarn --cwd ./safe-core-sdk install
- name: Build safe-core-sdk
run: yarn --cwd ./safe-core-sdk build
# END: Temporary steps to install sdk-starter-kit
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn coverage
- name: Upload coverage report
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: coverage/lcov.info