28 lines
727 B
YAML
28 lines
727 B
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: vet + fmt + tests
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
# `docker build` streams the context to the daemon. A compose bind-mount of
|
|
# `.` mounts an empty host dir instead, because the job is itself a container.
|
|
- name: Latest supported Go
|
|
run: docker build .
|
|
# Runs even when the step above failed, so a red build says whether the
|
|
# failure is version-specific.
|
|
- name: Lowest supported Go
|
|
if: ${{ !cancelled() }}
|
|
run: docker build --build-arg GO_VERSION=1.22.12 .
|