Skip to content

testing.go -> testing_test.go #201

testing.go -> testing_test.go

testing.go -> testing_test.go #201

Workflow file for this run

name: test
on:
push:
branches:
- master
- v4
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v6
- name: Prepare test database
run: make db
- name: Create table
run: make table
- name: Run test
run: make test