star logic : don't panic if star api returns error #337
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: golang build | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Build | |
working-directory: ./ | |
run: go build -v ./... | |
- name: Test | |
working-directory: ./ | |
run: go test -race -coverprofile=./coverage.txt -covermode=atomic ./... | |
- name: Check goreleaser file | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: check | |
#- name: Upload coverage | |
# uses: codecov/codecov-action@v2 | |
# with: | |
# files: ./coverage.txt | |