Skip to content

Merge pull request #151 from domainr/dependabot/github_actions/action… #10

Merge pull request #151 from domainr/dependabot/github_actions/action…

Merge pull request #151 from domainr/dependabot/github_actions/action… #10

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/[email protected]
with:
submodules: recursive
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ^1
- name: Update root cache
run: go generate -v -x
- name: Vet Go code
run: go vet ./...
- name: govulncheck
uses: golang/[email protected]
with:
cache: false
repo-checkout: false
- name: Run flaky test
env:
DNSR_DEBUG: 1
run: go test -v -race ./... -run UK
- name: Test Go code
env:
DNSR_TIMEOUT: 5s
run: go test -v -race ./...
- name: Verify repo is unchanged
run: git diff --exit-code HEAD