Skip to content

Commit

Permalink
Aggregates essential checks in a single GHA (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubiratansoares authored Nov 5, 2023
1 parent 79e92fd commit 2bd82f4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 31 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ jobs:
- name: Checkout code
uses: actions/[email protected]

- name: Component tests for Bash Linter
uses: ./checks/bash

- name: Component tests for license enforcer
uses: ./checks/licenses
- name: Component tests for essential checks
uses: ./essentials
with:
file-patterns: "*.sh"

- name: Component tests for Docs Linter
uses: ./checks/docs
9 changes: 0 additions & 9 deletions checks/bash/action.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions checks/docs/action.yaml

This file was deleted.

15 changes: 13 additions & 2 deletions checks/licenses/action.yaml → essentials/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "license-enforcer"
description: "Enforces open-source license in source files"
name: "docs-linter"
description: "Standardize documentation and prose with different linters"

inputs:
file-patterns:
Expand All @@ -14,6 +14,17 @@ inputs:
runs:
using: "composite"
steps:
- name: Check typos everywhere
uses: crate-ci/[email protected]

- name: Lint documentation
shell: bash
run: ./src/docs-linter.sh $GITHUB_WORKSPACE

- name: Lint Bash Scripts
shell: bash
run: ./src/bash-linter.sh $GITHUB_WORKSPACE

- name: Check licenses on source files
shell: bash
run: ./src/license-enforcer.sh $GITHUB_WORKSPACE ${{ inputs.file-patterns }} ${{ inputs.license }}

0 comments on commit 2bd82f4

Please sign in to comment.