split to test.yml
This commit is contained in:
parent
51013605eb
commit
3c453f6ccb
2 changed files with 41 additions and 32 deletions
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