Skip to content

Update go version in actions. #93

Update go version in actions.

Update go version in actions. #93

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@v5
with:
go-version: 'stable'
check-latest: true
- name: Checkout repo
uses: actions/checkout@v4
- 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"