money: allow scales smaller than currency scale #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
name: money | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [oldstable, stable] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- 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@v4 | |
- name: Run tests with coverage | |
run: go test -race -shuffle=on -coverprofile="coverage.txt" -covermode=atomic ./... | |
- name: Upload test coverage | |
if: matrix.go-version == 'stable' | |
uses: codecov/codecov-action@v4 |