Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ jobs:
- run: go tool govulncheck ./...
- run: go tool gotestsum --format github-actions -- -race -count=1 ./...

platforms:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
defaults:
run:
shell: bash
steps:
# Git for Windows converts line endings to CRLF on checkout by default.
- run: git config --global core.autocrlf false
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- run: go vet ./...
- run: go tool gotestsum --format github-actions -- -race -count=1 ./...

# release.yml only runs on tags, so a stale lockfile entry would otherwise break the next release.
actions-lock:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go test ./internal/report -run '^$' -fuzz '^FuzzText$' -fuzztime 60s

The provider protocol filter is fuzzed in harness, with its model proxy.

On each push, CI checks formatting and `go mod tidy`, then runs `go vet`, `staticcheck`, `govulncheck`, `zizmor` on the workflows and the action, the tests, the three fuzz targets and the Docker isolation tests of both agent images. Make both isolation jobs required release checks.
On each push, CI checks formatting and `go mod tidy`, then runs `go vet`, `staticcheck`, `govulncheck`, `zizmor` on the workflows and the action, the tests on Linux, macOS and Windows, the three fuzz targets and the Docker isolation tests of both agent images. Make both isolation jobs required release checks.

## Isolation tests

Expand Down
2 changes: 1 addition & 1 deletion internal/triage/triage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func TestRunTriagesEveryNewAdvisoryWithinItsTime(t *testing.T) {

func TestRunLeavesTheAdvisoriesToTheNextRunOnceItsTimeIsSpent(t *testing.T) {
defer func(d time.Duration) { maxRunDuration = d }(maxRunDuration)
maxRunDuration = maxAdvisoryDuration
maxRunDuration = maxAdvisoryDuration - time.Second
gh, eng := newFixture(), &fakeEngine{}
var logs strings.Builder

Expand Down
Loading