Files
ask-53/.github/workflows/test.yml
dependabot[bot] 59d343f589
test / test (ubuntu-latest) (push) Successful in 13m12s
test / test (macos-latest) (push) Canceled after 0s
Bump actions/setup-go from 7.0.0 to 7.1.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/b7ad1dad31e06c5925ef5d2fc7ad053ef454303e...d8cbb8045d7f43706b9177cceb36c1f91a6644d5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-26 18:54:28 +00:00

52 lines
1.6 KiB
YAML

name: test
on:
push:
branches: ['**']
pull_request:
workflow_dispatch:
workflow_call:
permissions:
contents: read
concurrency:
group: test-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: "1.26.x"
check-latest: true
cache: true
- name: Install dig on Linux
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y dnsutils
- name: Check module checksums
run: go mod verify
- name: Check formatting
shell: bash
run: test -z "$(gofmt -l cmd internal)"
- name: Static analysis
run: make check
- name: Race and integration tests
run: make test
- name: Fuzz question parser
run: go test ./internal/dnsserver -run='^$' -fuzz=FuzzQuestion -fuzztime=10s -parallel=2
- name: Fuzz TXT encoding
run: go test ./internal/dnsserver -run='^$' -fuzz=FuzzTXTWire -fuzztime=10s -parallel=2
- name: Verify release packaging
if: runner.os == 'Linux'
run: |
make release VERSION=v0.0.0-ci
bash scripts/test-release.sh v0.0.0-ci