Files
go-openai/.github/workflows/pr.yml
sashabaranov b6e0908977 Run tests on PR (#57)
* run tests on PR

* fix tests+lint

* update linter config
2023-01-28 22:32:23 +04:00

24 lines
453 B
YAML

name: PR sanity check
on: pull_request
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 -v .