mirror of
https://github.com/coredns/coredns.git
synced 2025-12-04 17:35:13 -05:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](dcd71f6466...2541b1294d)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
name: Go Tests
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
|
with:
|
|
go-version: '1.18.0'
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- 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@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
|
with:
|
|
go-version: '1.18.0'
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- 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@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
|
with:
|
|
go-version: '1.18.0'
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- 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@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Test Makefile.release
|
|
run: make GITHUB_ACCESS_TOKEN=x -n release github-push -f Makefile.release
|
|
|
|
- name: Test Makefile.docker
|
|
run: make VERSION=x DOCKER=x -n release docker-push -f Makefile.docker
|