fix(GODT-3183): Add missing indices to db #873
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: dev | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-12, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Get sources | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Run go mod tidy | |
run: go mod tidy | |
- name: Run golangci-lint | |
run: | | |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@251ceaa228607dd3e0371694a1ab2c45d21cb744 | |
golangci-lint run --timeout=500s | |
- name: Run tests | |
run: go test -timeout 15m -v ./... | |
- name: Run tests with race check | |
if: runner.os != 'Windows' | |
run: go test -race -v ./tests | |
Fuzzing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build Fuzzers | |
id: build | |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'gluon' | |
language: go | |
- name: Run Fuzzers | |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | |
with: | |
oss-fuzz-project-name: 'gluon' | |
language: go | |
fuzz-seconds: 300 | |
- name: Upload Crash | |
uses: actions/upload-artifact@v3 | |
if: failure() && steps.build.outcome == 'success' | |
with: | |
name: artifacts | |
path: ./out/artifacts |