Skip to content

Commit

Permalink
ci: udpate lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
subpop committed Oct 9, 2024
1 parent a6bc01f commit e53aeba
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
name: Lint

on:
pull_request:
workflow_dispatch:
pull_request:
workflow_dispatch:

jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: aevea/[email protected]
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: go mod download
- name: Run commitsar
uses: aevea/[email protected]
lint-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: golangci/[email protected]
with:
version: latest
args: --verbose --timeout=3m
- uses: actions/checkout@v4
- uses: golangci/[email protected]
lint-language:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: get-woke/woke-action@v0
with:
fail-on-error: true
- uses: actions/checkout@v4
- uses: get-woke/woke-action@v0
with:
fail-on-error: true

0 comments on commit e53aeba

Please sign in to comment.