From f337103d2e34bdbbabbf26d9cd6d392fcb44f8a6 Mon Sep 17 00:00:00 2001 From: docktermj Date: Tue, 29 Aug 2023 16:07:56 -0400 Subject: [PATCH] #31 Add windows testing --- .github/workflows/go-test-darwin.yaml | 2 +- .github/workflows/go-test-linux.yaml | 2 +- .github/workflows/go-test-windows.yaml | 25 +++++++++++++++++++++++++ .gitignore | 1 + 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/go-test-windows.yaml diff --git a/.github/workflows/go-test-darwin.yaml b/.github/workflows/go-test-darwin.yaml index 2a2ffa5..b4d0c61 100644 --- a/.github/workflows/go-test-darwin.yaml +++ b/.github/workflows/go-test-darwin.yaml @@ -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 diff --git a/.github/workflows/go-test-linux.yaml b/.github/workflows/go-test-linux.yaml index 10248d7..fa387ff 100644 --- a/.github/workflows/go-test-linux.yaml +++ b/.github/workflows/go-test-linux.yaml @@ -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 diff --git a/.github/workflows/go-test-windows.yaml b/.github/workflows/go-test-windows.yaml new file mode 100644 index 0000000..8f51cef --- /dev/null +++ b/.github/workflows/go-test-windows.yaml @@ -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 ./... diff --git a/.gitignore b/.gitignore index ea40f4d..393d348 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ go.work # Visual Studio code .vscode +*.code-workspace .history # Makefile