Merge pull request #101 from solusio/task-oneumyvakin-add-fields-to-c… #239
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: main | |
on: | |
push: | |
tags: [ v* ] | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
go-version: | |
- 1.19.x | |
- 1.20.x | |
- 1.21.x | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Test | |
run: go test -coverprofile=profile.cov | |
- name: Send coverage | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov | |
# Was broken, track progress here: | |
# https://github.com/golangci/golangci-lint-action/issues/244 | |
# - name: golangci-lint | |
# uses: golangci/golangci-lint-action@v2 | |
# with: | |
# version: v1.42.1 |