-
Notifications
You must be signed in to change notification settings - Fork 205
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
41962f7
commit cd5c81e
Showing
5 changed files
with
54 additions
and
7 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
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,48 @@ | ||
name: Build and smoke test (MacOS) | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
runs-on: [macos-latest] | ||
runs-on: ${{ matrix.runs-on }} | ||
name: Build | ||
steps: | ||
- name: Set up Go 1.20.7 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.20.7 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go get -v -t -d ./... | ||
if [ -f Gopkg.toml ]; then | ||
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
dep ensure | ||
fi | ||
- name: Build | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/cmd/node && go build . | ||
cd ${GITHUB_WORKSPACE}/cmd/seednode && go build . | ||
cd ${GITHUB_WORKSPACE}/cmd/keygenerator && go build . | ||
cd ${GITHUB_WORKSPACE}/cmd/logviewer && go build . | ||
cd ${GITHUB_WORKSPACE}/cmd/termui && go build . | ||
# On GitHub, we only run the short tests, and we only run them for some OS/ARCH combinations. | ||
- name: Run tests | ||
run: | | ||
GOOS=$(go env GOOS) | ||
if [[ "$GOOS" == darwin ]]; then | ||
go test -short -v ./... | ||
fi |
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
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
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