-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cicd, remove scheduled cicd runs (#30)
- Loading branch information
Showing
6 changed files
with
133 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,20 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
schedule: | ||
- cron: "0 0 * * *" # daily at midnight | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
shellcheck: | ||
name: shellcheck | ||
code_lint: | ||
name: Shellcheck and Shell Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Update Shellcheck | ||
run: | | ||
sudo apt install xz-utils | ||
scversion="stable" | ||
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | ||
sudo cp "shellcheck-${scversion}/shellcheck" /usr/bin/ | ||
shellcheck --version | ||
- name: asdf_install | ||
uses: asdf-vm/actions/install@v1 | ||
with: | ||
before_install: bash -c '${ASDF_DATA_DIR:=$HOME/.asdf}/plugins/nodejs/bin/import-release-team-keyring' | ||
- name: Shellcheck | ||
run: shellcheck -x bin/* -P lib/ | ||
shfmt: | ||
name: shfmt | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install Shell Format | ||
run: brew install shfmt | ||
- name: List files to check | ||
- name: Shell Format - List files to check | ||
run: shfmt -f . | ||
- name: Check Format | ||
- name: Shell Format - Validate | ||
run: shfmt -d . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodejs 14.15.5 | ||
shellcheck 0.7.1 | ||
shfmt 3.2.2 |
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
File renamed without changes