Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
A. Schulze committed Feb 9, 2024
1 parent 61b8c5a commit fcfa83a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/gofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ name: gofmt
on:
push:
pull_request:
schedule:
- cron: '1 1 1 * *'
jobs:
run_gofmt:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up go
uses: actions/setup-go@v4
with:
go-version: 'stable' # echo "go version" in the log
- name: run gofmt
shell: sh
run: |
files_with_format_issues="$( find . -name '*.go' -print0 | xargs --null --no-run-if-empty gofmt -l )"
echo 'files_with_format_issues:'
echo "${files_with_format_issues}"
num_files_with_format_issues="$( echo "${files_with_format_issues}" | grep --text --count '^./' || : )"
echo 'num_files_with_format_issues:'
echo "${num_files_with_format_issues}"
exit ${num_files_with_format_issues}
- name: checkout
uses: actions/checkout@v4
- name: set up go
uses: actions/setup-go@v4
with:
go-version: 'stable' # echo "go version" in the log
- name: run gofmt
shell: sh
run: |
files_with_format_issues="$( find . -name '*.go' -print0 | xargs --null --no-run-if-empty gofmt -l )"
echo 'files_with_format_issues:'
echo "${files_with_format_issues}"
num_files_with_format_issues="$( echo "${files_with_format_issues}" | grep --text --count '^./' || : )"
echo 'num_files_with_format_issues:'
echo "${num_files_with_format_issues}"
exit ${num_files_with_format_issues}
14 changes: 8 additions & 6 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: markdownlint
on:
push:
pull_request:
push:
pull_request:
schedule:
- cron: '2 2 1 * *'
jobs:
run_markdownlint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run markdownlint
uses: actionshub/markdownlint@main
- name: checkout
uses: actions/checkout@v4
- name: Run markdownlint
uses: actionshub/markdownlint@main
14 changes: 8 additions & 6 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: shellcheck
on:
push:
schedule:
- cron: '4 4 1 * *'
jobs:
run_shellcheck:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run shellcheck
uses: ludeeus/action-shellcheck@master
with:
severity: style
- name: checkout
uses: actions/checkout@v4
- name: run shellcheck
uses: ludeeus/action-shellcheck@master
with:
severity: style

0 comments on commit fcfa83a

Please sign in to comment.