Skip to content

Commit

Permalink
ci: merge workflows
Browse files Browse the repository at this point in the history
Since the `commits`, `license-header`, and `go-code-quality` workflows are very simple and share a similar trigger, it made sense to merge them all in a single workflow.
  • Loading branch information
torives committed Nov 24, 2023
1 parent 5fdca9f commit 2409fdd
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 70 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Assess code quality

on: push

jobs:
assess-code-quality:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Check conventional commit
uses: cocogitto/cocogitto-action@v3
id: conventional_commit_check
with:
check-latest-tag-only: true

- name: Check license header
uses: viperproject/check-license-header@v2
with:
path: ./
config: .github/license-check/config.json

- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Run Go Linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
19 changes: 0 additions & 19 deletions .github/workflows/commits.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/go-code-quality.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/license-header.yml

This file was deleted.

0 comments on commit 2409fdd

Please sign in to comment.