Skip to content

Commit

Permalink
#31 Add windows testing
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Aug 29, 2023
1 parent db997ec commit f337103
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
go: ["1.20", "1.21"]
go: ["1.21"]
name: Go ${{ matrix.go }} - darwin
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.20", "1.21"]
go: ["1.21"]
name: Go ${{ matrix.go }} - linux
steps:
- name: Checkout repository
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Based on
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-windows.yaml

on: [push]

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
go: ["1.21"]
name: Go ${{ matrix.go }} - windows
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run go test
run: go test -v -p 1 ./...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ go.work

# Visual Studio code
.vscode
*.code-workspace
.history

# Makefile
Expand Down

0 comments on commit f337103

Please sign in to comment.