Skip to content

go deps cleaned-up #354

go deps cleaned-up

go deps cleaned-up #354

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go-version: [ 1.21.x, oldstable, stable ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: |
go mod download
go get github.com/go-pg/pg/v9
- name: Test
run: go test -race -cover -coverprofile=coverage -covermode=atomic ./...
- name: Coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage
flags: unittests
fail_ci_if_error: false
verbose: true
- name: Build
run: go build -v .