Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
Loading