-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da31483
commit d237d1a
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | ||
|
||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Build nex-node | ||
working-directory: ./nex-node/cmd/nex-node | ||
run: go build -tags netgo -ldflags '-extldflags "-static"' | ||
- name: Build nex-agent | ||
working-directory: ./nex-agent/cmd/nex-agent | ||
run: go build -tags netgo -ldflags '-extldflags "-static"' | ||
- name: Build nex-cli | ||
working-directory: ./nex-cli/cmd/nex | ||
run: go build -tags netgo -ldflags '-extldflags "-static"' | ||
|
||
- name: Test nex-node | ||
working-directory: ./nex-node | ||
run: go test -v ./... | ||
- name: Test nex-agent | ||
working-directory: ./nex-agent | ||
run: go test -v ./... | ||
- name: Test nex-cli | ||
working-directory: ./nex-cli | ||
run: go test -v ./... |