Skip to content

Commit

Permalink
ci: consolidate lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
subpop committed Oct 9, 2024
1 parent ce02461 commit 3ead2a2
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,25 @@
name: Lint

on: pull_request
on:
pull_request:
workflow_dispatch:

jobs:
lint-commits:
name: Lint commits
runs-on: ubuntu-latest
steps:
- name: Check out code
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
- uses: actions/checkout@v4
- name: Run commitsar
uses: aevea/commitsar@v0.20.2
lint-code:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6.1.1
- uses: actions/checkout@v4
- uses: golangci/golangci-lint-action@v6.1.1
lint-language:
name: Lint language
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run woke
uses: get-woke/woke-action@v0
- uses: actions/checkout@v4
- uses: get-woke/woke-action@v0
with:
fail-on-error: true

0 comments on commit 3ead2a2

Please sign in to comment.