mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-19 19:44:33 +08:00
split tests into separate jobs
This commit is contained in:
parent
b7ea6e6989
commit
9687dc4ea8
1 changed files with 24 additions and 8 deletions
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
|
@ -23,16 +23,13 @@ jobs:
|
|||
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build main.go
|
||||
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go
|
||||
env CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags=gui main.go
|
||||
env CGO_ENABLED=1 GOOS=freebsd GOARCH=amd64 go build -tags=gui main.go
|
||||
#env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=gui main.go
|
||||
#env CGO_ENABLED=1 GOOS=freebsd GOARCH=amd64 go build -tags=gui main.go
|
||||
env CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -tags=gui main.go
|
||||
#env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui main.go
|
||||
tests:
|
||||
test-linux:
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
DATABASE: sqlite
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -42,6 +39,25 @@ jobs:
|
|||
go-version: 1.18
|
||||
- name: run tests
|
||||
run: |
|
||||
sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev
|
||||
go test -p 1 ./... -v
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
CLIENT_MODE: "off"
|
||||
test-darwin:
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
- name: run tests
|
||||
run: |
|
||||
xcode-select install
|
||||
go test -p 1 ./... -v
|
||||
env:
|
||||
DATABASE: sqlite
|
||||
|
|
Loading…
Add table
Reference in a new issue