diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b7c2615..a6c4808 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 ./...