Skip to content

feat: add initial changelog revision #582

feat: add initial changelog revision

feat: add initial changelog revision #582

Workflow file for this run

name: Lint
on:
pull_request:
workflow_call:
jobs:
code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false # Disable cache since golangci-lint does its own caching
- name: Lint source code
uses: golangci/golangci-lint-action@v4
with:
version: latest
commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install commitlint
run: |
npm install @commitlint/config-conventional
npm install commitlint
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: >-
npx commitlint
--from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }}
--to ${{ github.event.pull_request.head.sha }}
--verbose