Files
coredns/.github/workflows/go.test.yml
Yong Tang 8016f62771 Update golang version to 1.17 (#4852)
* Update golang version to 1.17

This PR updates golang version to 1.17 when applicable.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Remove `^` to avoid cache

This commit removes `^` to avoid cache in build system

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Change to 1.17.0

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-09-08 05:23:14 -07:00

83 lines
1.6 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
with:
go-version: '1.17.0'
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
with:
go-version: '1.17.0'
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
with:
go-version: '1.17.0'
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