1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

actions: test build on windows (#458)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2023-12-13 17:02:24 -08:00
committed by GitHub
parent 5a5864fde6
commit 746f3bffbd

View File

@@ -7,9 +7,9 @@ on:
pull_request:
jobs:
go-build:
linux-go-build:
runs-on: ubuntu-latest
name: Go ${{ matrix.go }} build
name: Linux Go ${{ matrix.go }} build
strategy:
matrix:
@@ -37,11 +37,40 @@ jobs:
uses: shogo82148/actions-goveralls@v1
with:
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
coverage:
needs: go-build
needs:
- linux-go-build
- windows-go-build
name: Test Coverage
runs-on: ubuntu-latest