Skip to content

Merge pull request #47 from uma-universal-money-address/fix/sanitize #115

Merge pull request #47 from uma-universal-money-address/fix/sanitize

Merge pull request #47 from uma-universal-money-address/fix/sanitize #115

name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "release/v1.0" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Lint
uses: golangci/[email protected]
with:
version: latest