mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
actions: test build on windows (#458)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
37
.github/workflows/build-and-test.yml
vendored
37
.github/workflows/build-and-test.yml
vendored
@@ -7,9 +7,9 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
go-build:
|
linux-go-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Go ${{ matrix.go }} build
|
name: Linux Go ${{ matrix.go }} build
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -37,11 +37,40 @@ jobs:
|
|||||||
uses: shogo82148/actions-goveralls@v1
|
uses: shogo82148/actions-goveralls@v1
|
||||||
with:
|
with:
|
||||||
path-to-profile: profile.cov
|
path-to-profile: profile.cov
|
||||||
flag-name: Go-${{ matrix.go }}
|
flag-name: Linux-Go-${{ matrix.go }}
|
||||||
|
parallel: true
|
||||||
|
|
||||||
|
windows-go-build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
name: Windows Go build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -race -coverprofile="profile.cov" ./...
|
||||||
|
|
||||||
|
- name: Send coverage
|
||||||
|
uses: shogo82148/actions-goveralls@v1
|
||||||
|
with:
|
||||||
|
path-to-profile: profile.cov
|
||||||
|
flag-name: Windows-Go
|
||||||
parallel: true
|
parallel: true
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
needs: go-build
|
needs:
|
||||||
|
- linux-go-build
|
||||||
|
- windows-go-build
|
||||||
name: Test Coverage
|
name: Test Coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user