split to test.yml
This commit is contained in:
parent
51013605eb
commit
3c453f6ccb
2 changed files with 41 additions and 32 deletions
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
|
|
@ -46,35 +46,4 @@ jobs:
|
||||||
ARCHS='amd64 386 arm64 arm'
|
ARCHS='amd64 386 arm64 arm'
|
||||||
for i in ${ARCHS}; do
|
for i in ${ARCHS}; do
|
||||||
env CGO_ENABLED=0 GOOS=freebsd GOARCH=${i} go build -ldflags "-s -w"
|
env CGO_ENABLED=0 GOOS=freebsd GOARCH=${i} go build -ldflags "-s -w"
|
||||||
done
|
done
|
||||||
test-windows:
|
|
||||||
runs-on: [ self-hosted, Windows]
|
|
||||||
name: Test on Windows
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version-file: 'go.mod'
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test -v ./...
|
|
||||||
env:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
|
|
||||||
test-ubuntu:
|
|
||||||
runs-on: [ self-hosted, Linux]
|
|
||||||
name: Test on Ubuntu
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version-file: 'go.mod'
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test -v ./...
|
|
||||||
env:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
40
.github/workflows/tests.yml
vendored
Normal file
40
.github/workflows/tests.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
name: Run tests on self-hosted runners
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ BigRefactor ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ BigRefactor ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-windows:
|
||||||
|
runs-on: [ self-hosted, Windows]
|
||||||
|
name: Test on Windows
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -v ./...
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
|
test-ubuntu:
|
||||||
|
runs-on: [ self-hosted, Linux]
|
||||||
|
name: Test on Ubuntu
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -v ./...
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue