-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (30 loc) · 1.05 KB
/
sub-unit-tests.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
name: Unit Tests
on:
workflow_call:
concurrency:
# Ensures that only one workflow task will run at a time. Previous builds, if
# already in process, will get cancelled. Only the latest commit will be allowed
# to run, cancelling any workflows in between
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test with Go
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
uses: actions/[email protected]
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Install dependencies
run: |
echo "dnsseed:github.com/zcashfoundation/dnsseeder/dnsseed" >> plugin.cfg
echo "replace github.com/btcsuite/btcd => github.com/gtank/btcd v0.0.0-20191012142736-b43c61a68604" >> go.mod
go get github.com/zcashfoundation/dnsseeder/[email protected]
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test