-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (38 loc) · 945 Bytes
/
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
name: run tests
on:
push:
branches: [ "develop"]
pull_request:
branches: [ "develop"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21.x'
- name: Run tests for smart-contract
run: make contract-test
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22
- name: Run unit tests.
run: make test
- name: Upload Coverage report to CodeCov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./cover.out