diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d5cdb0e1..35b51d9d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,9 +14,16 @@ on: jobs: lint-test: name: Lints and Tests - runs-on: macos-latest + runs-on: ${{ matrix.os }} permissions: contents: read + strategy: + fail-fast: false + matrix: + os: + - macos-latest + - ubuntu-latest + - windows-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: @@ -27,15 +34,23 @@ jobs: with: go-version: "1.26.1" - name: Lint + if: runner.os == 'Linux' uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: version: latest args: --timeout=5m - name: Unit Tests + if: runner.os == 'Linux' run: make test + - name: Unit Tests + if: runner.os != 'Linux' + run: go test -v ./... -race -covermode=atomic -coverprofile=coverage.out + shell: bash - name: Install Tests + if: runner.os != 'Windows' run: make test-install - name: Upload coverage to Codecov + if: runner.os == 'Linux' uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: token: ${{ secrets.CODECOV_TOKEN }}