Skip to content

Always write the update output file, even on container failure #856

Always write the update output file, even on container failure

Always write the update output file, even on container failure #856

Workflow file for this run

name: CI Build + Unit Test
on:
push:
branches: ["main"]
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- name: Test
# -count=2 ensures that test fixtures cleanup after themselves
# because any leftover state will generally cause the second run to fail.
run: go test -shuffle=on -count=2 -race -cover -timeout=5m ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run go vet
run: go vet ./...
- name: Check gofmt passes
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "gofmt failed, please run gofmt -w ."
exit 1
fi