mirror of
https://github.com/hanzoai/go-openai-realtime.git
synced 2026-09-30 21:54:42 +00:00
chore: fix ci test
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
# This workflow will build a golang project
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
||||
name: Sanity check
|
||||
|
||||
name: Go
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
prcheck:
|
||||
name: Sanity check
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.19', '1.20', '1.22', '1.23' ]
|
||||
go-version: ["1.19", "1.20", "1.22", "1.23"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -19,9 +18,14 @@ jobs:
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Display Go version
|
||||
run: go version
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
- name: Run vet
|
||||
run: |
|
||||
go vet .
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
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@v4
|
||||
|
||||
Reference in New Issue
Block a user