Make it possible to also match sticker sets #102
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
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" |