From 4fc14cfd4bfd5d06f8a078dd67fabfe2c80a18e5 Mon Sep 17 00:00:00 2001 From: jabdr Date: Fri, 30 Aug 2024 08:03:56 +0200 Subject: [PATCH] feat: add PR checks for windows (#350) --- .github/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b7c26156..a6c4808f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,21 +1,24 @@ name: Test on: pull_request: - branches: [ main, develop ] + branches: [main, develop] types: [opened, synchronize, reopened] push: - branches: [ main, develop ] + branches: [main, develop] permissions: contents: read jobs: test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-2022] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 @@ -24,4 +27,4 @@ jobs: cache: true - name: Run Go Tests - run: go test -coverprofile=coverage.out ./... + run: go test -coverprofile coverage.out ./...