Skip to content

chore(deps): bump gorm.io/gorm from 1.25.11 to 1.25.12 #122

chore(deps): bump gorm.io/gorm from 1.25.11 to 1.25.12

chore(deps): bump gorm.io/gorm from 1.25.11 to 1.25.12 #122

Workflow file for this run

# Building and testing Go
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go environment
uses: actions/setup-go@v5
with:
go-version: '1.22.4'
cache-dependency-path: go.sum
- name: Install dependencies
run: go get .
- name: Compile packages and dependencies
run: go build -v ./...
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go environment
uses: actions/setup-go@v5
with:
go-version: '1.22.4'
cache-dependency-path: go.sum
- name: Run tests and generate coverage report
run: go run gotest.tools/gotestsum@latest --format github-actions ./... -coverprofile=coverage.out --covermode=atomic
- name: Upload coverage report artifact
uses: actions/upload-artifact@v4
with:
name: coverage.out
path: ./coverage.out
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download coverage report artifact
uses: actions/download-artifact@v4
with:
name: coverage.out
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out