From 54f96edff4d97c1b773bfc3f129c0e5d5f4fd975 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 2 Apr 2026 12:31:36 -0700 Subject: [PATCH 1/2] ci: run unit tests on supported os runners --- .github/workflows/tests.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d5cdb0e1..e0662d58 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,6 +34,7 @@ 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 @@ -34,8 +42,10 @@ jobs: - name: Unit Tests run: make test - 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 }} From 2451d9598a38abc2e3cc91cdd6e19f6ff4e601ce Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Thu, 2 Apr 2026 12:51:24 -0700 Subject: [PATCH 2/2] ci: unit test separate from make test on linux --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e0662d58..35b51d9d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,7 +40,12 @@ jobs: 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