Skip to content

Yet more patterns updates #87

Yet more patterns updates

Yet more patterns updates #87

Workflow file for this run

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"