Files
go-openai/.github/workflows/pr.yml
sashabaranov 25eecf41f4 Update pr.yml
2023-03-14 23:10:09 +04:00

28 lines
592 B
YAML

name: PR sanity check
on:
- push
- pr
jobs:
prcheck:
name: PR sanity check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Run vet
run: |
go vet .
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Run tests
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3