-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.41 KB
/
Copy pathci.yml
File metadata and controls
40 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
# Per-SHA group: re-runs of the same commit dedupe, but a new commit never
# cancels an earlier commit's in-flight run (release CI conclusions stay intact).
concurrency:
group: ${{ github.workflow_ref }}-${{ github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# go.mod: go 1.26.3
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go vet ./...
# The suite needs python3 for two reasons: the Python extractor runs its
# driver through it, and the build indexes its output with Pagefind,
# which is installed here as a Python distribution. Without Pagefind on
# the runner every build-touching test skips itself, so this step is what
# makes them run at all.
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install 'pagefind[bin]'
- run: python3 -m pagefind --version
# -short, and the browser assertions sit behind the `e2e` build tag, so
# this runs neither. The e2e suite drives a real headless Chromium that
# playwright-go downloads at run time; CI does not pay for that download.
# Run it locally with `go test -tags e2e ./internal/e2e/...`.
- run: go test ./... -race -short -timeout=10m