Merge tag 'v1.4.13' into release/bsc-1.x-fh2.5 #359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Test | |
on: | |
push: | |
branches: | |
- "firehose-v*" | |
- "release/*" | |
pull_request: | |
branches: | |
- "firehose-v*" | |
- "release/*" | |
jobs: | |
unit-test: | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
~\AppData\Local\go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Unit Test | |
env: | |
CGO_CFLAGS: "-O -D__BLST_PORTABLE__" | |
CGO_CFLAGS_ALLOW: "-O -D__BLST_PORTABLE__" | |
ANDROID_HOME: "" # Skip android test | |
run: | | |
go mod download | |
make test |