Merge pull request #1 from mdm-code/update-go-version #24
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
go-version: [ '1.19', '1.21' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
go version | |
go install golang.org/x/lint/golint@latest | |
- name: Build | |
run: make build | |
- name: Test | |
run: go test -v -coverprofile coverage.txt -covermode atomic ./... | |
- name: Coverage | |
uses: codecov/codecov-action@v2.1.0 |