Skip to content

Commit b00038a

Browse files
authored
Merge pull request #16 from lroolle/feat/ci-release
fix: move shellcheck to CI workflow and enable verbose output
2 parents b51c6f7 + c59da4a commit b00038a

2 files changed

Lines changed: 39 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
jobs:
10+
shellcheck:
11+
name: Shell Linting
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Run ShellCheck
18+
uses: ludeeus/action-shellcheck@master
19+
with:
20+
scandir: "."
21+
format: gcc
22+
severity: error
23+
24+
test:
25+
name: Basic Tests
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Test help output
32+
run: |
33+
./claude.sh --help
34+
./claude-yolo --help
35+
36+
- name: Test version output
37+
run: |
38+
./claude.sh --version
39+
./claude-yolo --version

.github/workflows/release.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,9 @@ env:
1616
IMAGE_NAME: ${{ github.repository }}
1717

1818
jobs:
19-
shellcheck:
20-
name: Shell Linting
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
26-
- name: Run ShellCheck
27-
uses: ludeeus/action-shellcheck@master
28-
with:
29-
scandir: "."
30-
format: gcc
31-
severity: warning
32-
3319
build-and-push:
3420
name: Build and Push Docker Image
3521
runs-on: ubuntu-latest
36-
needs: shellcheck
3722
permissions:
3823
contents: read
3924
packages: write

0 commit comments

Comments
 (0)