chore: upgrade go.mod to 1.20 (matches Dockerfile builder) + ioutil deprecation (PROJQUAY-6620) #358
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Verify go.mod is sane | |
run: go mod tidy && git diff --no-patch --exit-code | |
- name: Install dependencies | |
run: go mod download | |
- name: Build | |
run: make build | |
- name: Test | |
shell: bash | |
run: make test |