forked from ava-labs/avalanche-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 792 Bytes
/
unit-test.yml
File metadata and controls
35 lines (30 loc) · 792 Bytes
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
name: Unit Tests
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
unit_test:
name: Golang Unit Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-14]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Go dependencies
run: go mod download
- name: Build and Test
working-directory: ${{ github.workspace }}
run: |
scripts/build.sh
scripts/unit_test.sh
env:
CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # Set the CGO flags to use the portable version of BLST