Skip to content

ci(deps): update pre-commit hook commitizen-tools/commitizen to v3.18.1 #83

ci(deps): update pre-commit hook commitizen-tools/commitizen to v3.18.1

ci(deps): update pre-commit hook commitizen-tools/commitizen to v3.18.1 #83

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
workflow_call:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Run pre-commit
uses: nikaro/actions/pre-commit@988ef9aa9dc1731203ea6c6ada2f7a53a86271d5 # 1.3.19
- run: go vet ./...
- run: go fix ./...
- name: Run staticcheck
uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc # v1.3.0
with:
install-go: false
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Build
run: go build -v -mod vendor .
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Test
run: go test -v ./...