chore: add tests for min and max string lengths validation on generat… #188
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: development | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
concurrency: | |
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
qa: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "^1.21.1" | |
- name: Lint Go files | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.53.3 | |
args: -v --color=always --config=.rules/.golangci.yml ./... | |
- name: Run tests | |
run: go test -v -race -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
- name: Build binaries | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
distribution: goreleaser | |
version: '1.21.2' | |
args: release --debug --snapshot --clean | |
env: | |
GO_VERSION: "1.21.1" |