Merge pull request #16 from ma91n/patch-1 #47
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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.20', '1.19' ] | |
name: Go ${{ matrix.go }} test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install GolangCI-Lint | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.2 | |
- run: make test_coverage | |
- name: Upload code coverage to codecov | |
if: matrix.go == '1.20' | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.out | |
- run: make lint |