Chores/upgrade #6
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: Test and Lint | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
branches: | |
- master | |
- main | |
paths: | |
- '**.go' | |
jobs: | |
test: | |
name: lint/test | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout repository | |
- uses: actions/setup-go@v4 | |
name: Setup go environment | |
with: | |
go-version: "1.22" | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
install-only: true | |
- name: Run tests | |
run: go test -v ./... | |
- uses: golangci/golangci-lint-action@v3 | |
name: Run golangci-lint | |
with: | |
version: "latest" | |
args: --enable revive --timeout=2m --verbose | |
- name: Build libraries | |
run: | | |
./build.sh --snapshot |