Skip to content

Merge pull request #310 from compscidr/renovate/github.com-gin-contri… #614

Merge pull request #310 from compscidr/renovate/github.com-gin-contri…

Merge pull request #310 from compscidr/renovate/github.com-gin-contri… #614

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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 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/...