-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 17 additions & 1 deletion
18
.github/workflows/lint-test-vet.yml → .github/workflows/go-check.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
name: Lint, test, vet | ||
name: Go check | ||
|
||
on: push | ||
|
||
jobs: | ||
changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
go_changed: ${{ steps.filter.outputs.any_changed }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: tj-actions/changed-files@v43 | ||
id: filter | ||
with: | ||
files: | | ||
**/*.go | ||
go.mod | ||
go.sum | ||
checks: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.go_changed == 'true' }} | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Shell check | ||
|
||
on: push | ||
|
||
jobs: | ||
checks: | ||
timeout-minutes: 1 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v43 | ||
with: | ||
files: infrastructure/02-configure/**/*.sh | ||
|
||
- name: Shell check | ||
uses: ludeeus/[email protected] | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
with: | ||
version: v0.10.0 | ||
scandir: './infrastructure/02-configure' | ||
severity: style # check all levels of issues | ||
check_together: true # check all scripts in single run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters