Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #61
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
name: Build | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint_and_test: | |
name: Lint and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: Lint | |
run: | | |
go install golang.org/x/lint/golint@latest | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
make lint | |
- name: Setup massdns | |
uses: ./.github/actions/setup-massdns | |
- name: Test | |
run: make test | |
- name: Code coverage | |
run: make cover | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@v3 | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.18.x", "1.19.x", "1.20.x"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup massdns | |
uses: ./.github/actions/setup-massdns | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Load cached dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Download dependencies | |
run: go mod download | |
- name: Build | |
run: make |