Skip to content

Merge pull request #297 from compscidr/renovate/gorm.io-gorm-1.x #586

Merge pull request #297 from compscidr/renovate/gorm.io-gorm-1.x

Merge pull request #297 from compscidr/renovate/gorm.io-gorm-1.x #586

Workflow file for this run

name: Build and Test
on:
push:
branches:
- "**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20.0
uses: actions/setup-go@v5
with:
go-version: 1.20.0
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -ldflags="-X 'main.Version=$(git rev-parse HEAD)'" -v .
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic goblog/...