Files
coredns/.github/workflows/go.test.yml
Miek Gieben a2b34a233d workflow: guard against faillint failing (#4524)
So there is (and will always) be a disconnect between latest Go in the
workflow and the actual latest Go used by other utils. Faillint move to
go 1.16 features and for some reason this now borkes.

Add ||true to allow failling to not compile, this will skip that
particular test (so be it)

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-03-16 11:11:12 +01:00

77 lines
1.5 KiB
YAML

name: Go Tests
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: |
( cd request; go test -race ./... )
( cd core; go test -race ./... )
( cd coremain; go test -race ./... )
test-plugins:
name: Test Plugins
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: ( cd plugin; go test -race ./... )
test-e2e:
name: Test e2e
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: |
go install github.com/fatih/faillint || true
( cd test; go test -race ./... )
test-makefile-release:
name: Test Makefile.release
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install make curl
- name: Check out code
uses: actions/checkout@v2
- name: Test Makefile
run: make DOCKER=bla GITHUB_ACCESS_TOKEN=bla -n build docker github-push docker-push -f Makefile.release