-
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.
Exposes
nex node up
to Darwin (#280)
Signed-off-by: Jordan Rash <[email protected]>
- Loading branch information
1 parent
920c7c4
commit 27f46b4
Showing
10 changed files
with
70 additions
and
62 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
steps: | ||
|
@@ -51,37 +51,37 @@ jobs: | |
name: Build agent | ||
working-directory: ./agent/cmd/nex-agent | ||
run: go build -tags netgo -ldflags '-extldflags "-static"' | ||
- | ||
name: Run unit tests | ||
if: runner.os != 'Windows' | ||
- | ||
name: Run test suite | ||
working-directory: . | ||
run: | | ||
if: runner.os == 'Linux' | ||
run: | | ||
go test $(go list ./... | grep -v spec) | ||
go test -v -race $(go list ./... | grep -v spec) | ||
- | ||
name: Run spec suite | ||
name: Run spec suite | Linux | ||
working-directory: . | ||
if: runner.os != 'Windows' | ||
if: runner.os == 'Linux' | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
go mod tidy | ||
sudo $(go env GOPATH)/bin/ginkgo -r --randomize-all --randomize-suites --vv --trace --keep-going --output-interceptor-mode=none ./spec | ||
- | ||
name: Run spec suite | ||
name: Run spec suite | Windows | ||
working-directory: . | ||
if: runner.os == 'Windows' | ||
run: | | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
go mod tidy | ||
go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --flake-attempts=5 --vv --trace --keep-going --output-interceptor-mode=none ./spec | ||
- | ||
name: Run test suite | ||
name: Run spec suite | Darwin | ||
working-directory: . | ||
if: runner.os != 'Windows' | ||
if: runner.os == 'macOS' | ||
run: | | ||
mv spec _spec | ||
go test -v -race ./... | ||
go install github.com/onsi/ginkgo/v2/[email protected] | ||
go mod tidy | ||
sudo $(go env GOPATH)/bin/ginkgo -r --randomize-all --randomize-suites --vv --trace --keep-going --output-interceptor-mode=none ./spec | ||
build: | ||
timeout-minutes: 10 | ||
|
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
2 changes: 1 addition & 1 deletion
2
internal/node/node_signals_linux.go → internal/node/node_signals_unix.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//go:build linux | ||
//go:build linux || darwin | ||
|
||
package nexnode | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
...ode/processmanager/process_mgr_windows.go → ...l/node/processmanager/process_mgr_nofc.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//go:build windows | ||
//go:build windows || darwin | ||
|
||
package processmanager | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ode/processmanager/spawn_procman_linux.go → ...node/processmanager/spawn_procman_unix.go
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//go:build linux | ||
//go:build linux || darwin | ||
|
||
package processmanager | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//go:build windows | ||
|
||
package processmanager | ||
|
||
import ( | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//go:build linux || windows | ||
|
||
package main | ||
|
||
import ( | ||
|
This file was deleted.
Oops, something went wrong.
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