Skip to content

Bump gorm.io/gorm from 1.25.10 to 1.25.11 #225

Bump gorm.io/gorm from 1.25.10 to 1.25.11

Bump gorm.io/gorm from 1.25.10 to 1.25.11 #225

Workflow file for this run

name: Test
# This workflow will run on main branch and on any pull requests targeting main
on:
push:
branches:
- main
paths:
- '.github/workflows/test.yml'
- 'cmd/**'
- 'src/**'
pull_request:
workflow_dispatch:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
id: go
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: |
make test-coverage
env:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage report to Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_PORT: 5432
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5