Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

chore(deps): bump gorm.io/gorm from 1.24.5 to 1.25.4 #40

chore(deps): bump gorm.io/gorm from 1.24.5 to 1.25.4

chore(deps): bump gorm.io/gorm from 1.24.5 to 1.25.4 #40

Workflow file for this run

name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
# Label of the container job
mysql:
strategy:
matrix:
go: ['1.20', '1.19', '1.18']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
services:
mysql:
image: mysql:latest
env:
MYSQL_DATABASE: gorm
MYSQL_USER: gorm
MYSQL_PASSWORD: gorm
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 9910:3306
options: >-
--health-cmd "mysqladmin ping -ugorm -pgorm"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: go mod package cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('go.mod') }}
- name: Build
run: make check && make lint && make build
- name: Tests
run: GITHUB_ACTION=true GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True" make test
- name: Upload Cov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -f c.out