change: change Record to RecordSet in ExtendedZone #570
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
go-version: [1.16.x] | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install golangci-lint | |
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.18.0 | |
- name: Run golangci-lint | |
run: $(go env GOPATH)/bin/golangci-lint run ./... | |
test-with-module: | |
strategy: | |
matrix: | |
go-version: [1.16.x] | |
platform: [ubuntu-latest, macos-latest] | |
env: | |
GO111MODULE: on | |
GOPROXY: "https://proxy.golang.org" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Run Unit tests. | |
run: make test-coverage | |
# uncomment if use codeclimate | |
# coverage: | |
# needs: [test-with-module] | |
# name: coverage | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@master | |
# - uses: actions/setup-node@master | |
# with: | |
# go-version: 1.13.x | |
# - uses: paambaati/[email protected] | |
# env: | |
# CC_TEST_REPORTER_ID: c91f892b8957ff9b030830b15d17d9b8e51dc0657f82ad3143ef9c4f79c757f0 | |
# with: | |
# coverageCommand: make test-coverage | |
# debug: true | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [lint, test-with-module] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.16 | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Build | |
run: make build |