-
-
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.
Merge pull request #1 from davvid/shellcheck
* davvid/shellcheck: garden: add "publish" push URLs ci: use github actions to run checks garden: add "garden check" for running gcd.sh through shellcheck
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: rustup toolchain install stable --profile minimal --no-self-update | ||
- name: Install Garden | ||
run: cargo install garden-tools | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install Dependencies | ||
run: | | ||
set -x | ||
sudo apt-get update | ||
# Runtime dependencies (required) | ||
sudo apt-get install shellcheck | ||
- name: Run tests and checks | ||
run: garden -vv check |
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,18 @@ | ||
# Use "cargo install garden-tools" to install garden (https://gitlab.com/garden-rs/garden). | ||
# Usage: | ||
# garden check | ||
commands: | ||
check: shellcheck --exclude=SC2148 gcd.sh | ||
setup: sudo apt install shellcheck | ||
|
||
trees: | ||
gcd: | ||
description: Git worktree navigator | ||
path: "${GARDEN_CONFIG_DIR}" | ||
url: "[email protected]:davvid/gcd.git" | ||
remotes: | ||
github: "[email protected]:davvid/gcd.git" | ||
gitconfig: | ||
remote.publish.pushurl: | ||
- "[email protected]:davvid/gcd.git" | ||
- "[email protected]:davvid/gcd.git" |
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