-
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.
ci: use aqua in GitHub Actions workflows
- Loading branch information
Showing
6 changed files
with
72 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,28 @@ on: | |
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/**" | ||
pull_request: | ||
paths: | ||
- ".github/workflows/**" | ||
|
||
jobs: | ||
actionlint: | ||
name: Lint workflows | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Download actionlint | ||
id: get_actionlint | ||
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
shell: bash | ||
- name: Cache aqua dir | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.local/share/aquaproj-aqua | ||
key: aqua-installer-${{ hashFiles('aqua.yaml') }} | ||
restore-keys: | | ||
aqua-installer- | ||
- name: Check workflow files | ||
run: ${{ steps.get_actionlint.outputs.executable }} -color | ||
shell: bash | ||
- name: Setup aqua | ||
uses: aquaproj/[email protected] | ||
with: | ||
aqua_version: v2.21.3 | ||
aqua_opts: "" | ||
|
||
- name: Run actionlint | ||
run: actionlint -color |
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 |
---|---|---|
|
@@ -8,15 +8,24 @@ on: | |
|
||
jobs: | ||
shellcheck: | ||
name: Run shellcheck | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: shellcheck | ||
run: | | ||
docker run \ | ||
--rm \ | ||
--volume "$PWD":/root/.dotfiles:ro \ | ||
--entrypoint /root/.dotfiles/lint/shellcheck.sh \ | ||
koalaman/shellcheck-alpine:latest | ||
- name: Cache aqua dir | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.local/share/aquaproj-aqua | ||
key: aqua-installer-${{ hashFiles('aqua.yaml') }} | ||
restore-keys: | | ||
aqua-installer- | ||
- name: Setup aqua | ||
uses: aquaproj/[email protected] | ||
with: | ||
aqua_version: v2.21.3 | ||
aqua_opts: "" | ||
|
||
- name: Run shellcheck | ||
run: ./lint/shellcheck.sh |
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 |
---|---|---|
|
@@ -8,14 +8,24 @@ on: | |
|
||
jobs: | ||
shfmt: | ||
name: Run shfmt | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup shfmt | ||
uses: mfinelli/setup-shfmt@v3 | ||
- name: Cache aqua dir | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.local/share/aquaproj-aqua | ||
key: aqua-installer-${{ hashFiles('aqua.yaml') }} | ||
restore-keys: | | ||
aqua-installer- | ||
- name: Setup aqua | ||
uses: aquaproj/[email protected] | ||
with: | ||
aqua_version: v2.21.3 | ||
aqua_opts: "" | ||
|
||
- name: Run shfmt | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,24 @@ on: | |
|
||
jobs: | ||
luacheck: | ||
runs-on: ubuntu-latest | ||
|
||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Run StyLua | ||
uses: JohnnyMorganz/stylua-action@v3 | ||
- name: Cache aqua dir | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.local/share/aquaproj-aqua | ||
key: aqua-installer-${{ hashFiles('aqua.yaml') }} | ||
restore-keys: | | ||
aqua-installer- | ||
- name: Setup aqua | ||
uses: aquaproj/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: latest | ||
args: --check . | ||
aqua_version: v2.21.3 | ||
aqua_opts: "" | ||
|
||
- name: Run StyLua | ||
run: styelua --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 @@ | ||
shared/.config/aquaproj-aqua/aqua.yaml |