Skip to content

Update codecov/codecov-action action to v5.0.4 #705

Update codecov/codecov-action action to v5.0.4

Update codecov/codecov-action action to v5.0.4 #705

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.22.2
uses: actions/setup-go@v5
with:
go-version: 1.22.2
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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/...