Skip to content

Correct substitution for bulgarian 'Щ' #76

Correct substitution for bulgarian 'Щ'

Correct substitution for bulgarian 'Щ' #76

Workflow file for this run

on:
push:
branches:
- master
- main
pull_request:
# Only run if there are changes to Go code or related configurations
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "codecov.yml"
name: Tests
jobs:
test-cache:
name: "Run unit tests"
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18.x, 1.x]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test with race and coverage
run: |
go test -race -coverprofile=coverage.out -covermode=atomic
go tool cover -func=coverage.out
- uses: codecov/codecov-action@v3
with:
files: ./coverage.out
lint:
name: "Run static analysis"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: WillAbides/setup-go-faster@v1
with:
go-version: "1.x"
- run: "go vet ./..."
- uses: dominikh/staticcheck-action@v1
with:
version: "2022.1.3"