Skip to content

fix: Add random suffix to test table names #3763

fix: Add random suffix to test table names

fix: Add random suffix to test table names #3763

Workflow file for this run

name: "Unit tests"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unitests:
strategy:
matrix:
os: [large-ubuntu, large-windows, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: go mod download
- run: go build ./...
- name: Run tests
if: matrix.os != 'ubuntu-latest'
run: go test -tags=assert -race ./...
- name: Run tests
if: matrix.os == 'ubuntu-latest'
run: go test -tags=assert -race -coverprofile=coverage.out ./...
- name: Run benchmark
if: matrix.os == 'ubuntu-latest'
run: make benchmark-ci
- name: Save PR number
if: matrix.os == 'ubuntu-latest' && github.event_name == 'pull_request'
run: echo ${{ github.event.number }} > ./pr_number
- name: Upload deltas
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: delta-action-benchmarks
retention-days: 7
path: |
.delta.*
pr_number
- name: Generate coverage report
if: always() && matrix.os == 'ubuntu-latest'
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
if: always() && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d