Auto-generated Pull Request for refactor/uniprot-fetch #186
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: Lint and test coverage | |
on: | |
pull_request: | |
branches-ignore: | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
cache: false | |
- run: go version | |
- name: run linter | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.55.2 | |
test: | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: set up golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- run: go version | |
- name: check out code | |
uses: actions/checkout@v4 | |
- name: unit test | |
run: go test -shuffle on -covermode=atomic -coverprofile=profile.cov -v ./... | |
- name: upload coverage to codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./profile.cov | |
token: ${{ secrets.CODECOV }} |