Yet more patterns updates #87
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
name: Go code tests | |
on: [push, pull_request] | |
jobs: | |
build_lint_test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go compiler | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
check-latest: true | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Build binary | |
run: | | |
go get -t ./... | |
make | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# Disable errcheck (too noisy) for now. | |
# TODO: improve this by disabling only problematic regexps. | |
args: -D errcheck -E gofmt,revive | |
- name: Go test | |
run: | | |
go test -v ./... | |
go test -cpu=2 -race -v ./... | |
- name: Check Translations | |
run: | | |
go build -o ci/transcheck/transcheck ci/transcheck/transcheck.go | |
./ci/transcheck/transcheck --source-dir "src" --translations-dir "examples/translations" |