mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 11:25:14 -05:00
Cleanup yaml formatting (#5151)
* Add yamllint config. * Add yamllint workflow. * Cleanup linting issues. * Remove unnecessary `set -x -e` from workflows. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
97
.github/workflows/go.test.yml
vendored
97
.github/workflows/go.test.yml
vendored
@@ -5,81 +5,76 @@ jobs:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
|
||||
- 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: Check out code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
( cd request; go test -race ./... )
|
||||
( cd core; go test -race ./... )
|
||||
( cd coremain; go test -race ./... )
|
||||
- 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: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: ( cd plugin; go test -race ./... )
|
||||
- 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: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
go install github.com/fatih/faillint || true
|
||||
( cd test; go test -race ./... )
|
||||
- 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: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install make curl
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
- name: Test Makefile.release
|
||||
run: make GITHUB_ACCESS_TOKEN=x -n release github-push -f Makefile.release
|
||||
|
||||
- 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
|
||||
- name: Test Makefile.docker
|
||||
run: make VERSION=x DOCKER=x -n release docker-push -f Makefile.docker
|
||||
|
||||
Reference in New Issue
Block a user