update dataset viewer integration test #451
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: Go | |
on: | |
push: | |
branches: ['*', '*/*'] | |
tags: ['v*'] | |
pull_request: | |
branches: ['*'] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --timeout=5m | |
version: v1.62 | |
- name: GinContext | |
run: go run linters/gincontext/main.go | |
swagger: | |
name: swagger-gen | |
strategy: | |
matrix: | |
go: ["1.23"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Gen | |
run: | | |
go install github.com/swaggo/swag/cmd/swag@latest | |
make swag | |
unit-tests: | |
name: unit-tests | |
strategy: | |
matrix: | |
go: ["1.23"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: go test ./... -short | |
integration-tests: | |
name: integration-tests | |
strategy: | |
matrix: | |
go: ["1.23"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
with: | |
go-version: ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: GITHUB=true go test opencsg.com/csghub-server/tests/... |