Skip to content

adds basic database access test to ensure connectivity #113

adds basic database access test to ensure connectivity

adds basic database access test to ensure connectivity #113

Workflow file for this run

---
name: 'ci-go'
on:
pull_request:
branches:
- 'main'
paths:
- '**.go'
- '**/go.mod'
- '**/go.sum'
- 'go.work'
jobs:
test:
permissions:
contents: 'read'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
fetch-depth: 1
- name: 'Set up Go'
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.work'
check-latest: true
- name: 'Test'
run: make test
lint:
permissions:
contents: 'read'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
fetch-depth: 1
- name: 'Set up Go'
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: 'go.work'
check-latest: true
- name: 'Lint'
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: 'v1.56.2'
args: '-v $(go list -f ''{{.Dir}}/...'' -m | xargs)'