diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 2f2da38..b65ee4b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,10 +8,10 @@ # the host). # # TWO JOBS -# test gofmt, go vet, staticcheck and go test (with -race, and the -# database tests against a throwaway Postgres container), as -# `make check`. Then the Vue app's typecheck and build, in a node -# container. +# test gofmt, go vet, staticcheck and go test (with the database +# tests against a throwaway Postgres container), as `make check` +# minus -race, which the Pi can't run. Then the Vue app's +# typecheck and build, in a node container. # publish main only, after test: builds deploy/Dockerfile, pushes it to # this Gitea's container registry as : and :latest, then # pulls it into the web_server stack (its `activity-tracker` @@ -69,7 +69,9 @@ jobs: exit 1 # Read-only source, and named volumes for the module and build - # caches so repeat runs don't download everything again. + # caches so repeat runs don't download everything again. No -race: + # the Pi's kernel has a 39-bit address space, which the race + # detector doesn't support on arm64. `make check` runs it locally. - name: Go - lint and test shell: bash run: | @@ -81,7 +83,7 @@ jobs: --network "ci-$SHA" \ -e TEST_DATABASE_URL='postgres://postgres:ci@pg:5432/postgres?sslmode=disable' \ golang:1.27 \ - sh -c 'test -z "$(gofmt -l .)" && go vet ./... && go tool staticcheck ./... && go test -race -count=1 ./...' + sh -c 'test -z "$(gofmt -l .)" && go vet ./... && go tool staticcheck ./... && go test -count=1 ./...' # Copies web/ out of the read-only source so node_modules and the # build output stay in the container.