chore(deps): bump goreleaser/goreleaser-action from 4 to 5 #10
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: Unit Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: 👍 Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: Install dependencies | |
run: | | |
go mod download | |
go install gotest.tools/gotestsum@latest | |
- name: Test | |
run: gotestsum --format pkgname-and-test-fails --raw-command -- go test -v -race -json -coverprofile=coverage.out ./... | |
lint: | |
name: 💅 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- name: Install dependencies | |
run: go mod download | |
- name: Go vet | |
run: go vet ./... | |
- name: Run Linter | |
uses: morphy2k/revive-action@v2 | |
with: | |
config: revive.toml | |
commit_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: '${{ secrets.ACCESS_TOKEN }}' | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install Commitizen | |
run: pip install -U commitizen | |
- name: Check commits | |
run: cz check --rev-range origin/main..HEAD |