Skip to content

Commit

Permalink
ci: separate ci jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Sep 13, 2022
1 parent 6f85801 commit 1f79127
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: CI
on:
workflow_dispatch: # allows manual triggering
pull_request:
paths:
- '*.sh'
branches: [ main ]
push:
branches: [main]
paths:
- "*.sh"
branches: [ main ]

jobs:
shellcheck:
Expand All @@ -20,5 +17,13 @@ jobs:
uses: cachix/install-nix-action@v17
- name: Shellcheck
run: nix develop --command shellcheck $(find . -type f -name "*.sh" -executable)
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v17
- name: "actionlint"
run: nix develop --command actionlint --ignore 'SC2046'

0 comments on commit 1f79127

Please sign in to comment.