Skip to content

money: implement sql driver methods and enable linters #15

money: implement sql driver methods and enable linters

money: implement sql driver methods and enable linters #15

Workflow file for this run

on:
push:
branches: [main]
pull_request:
branches: [main]
name: money
jobs:
test:
strategy:
matrix:
go-version: [oldstable, stable]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Check out code
uses: actions/checkout@v3
- name: Verify code formatting
run: gofmt -s -w . && git diff --exit-code
- name: Verify dependency consistency
run: go get -u -t . && go mod tidy && git diff --exit-code
- name: Verify generated code
run: go generate ./... && git diff --exit-code
- name: Verify potential issues
uses: golangci/golangci-lint-action@v3
- name: Run tests with coverage
run: go test -race -shuffle=on -coverprofile="coverage.txt" -covermode=atomic ./...
- name: Upload test coverage
uses: codecov/codecov-action@v3