-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.09 KB
/
Copy pathci.yml
File metadata and controls
41 lines (37 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install ShellCheck
run: sudo apt-get install -y shellcheck
- name: Lint groundhog
run: shellcheck -s bash -S warning groundhog
- name: Lint install.sh
run: shellcheck -s bash -S warning install.sh
smoke-test:
name: Smoke Test
runs-on: macos-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install fswatch
run: brew install fswatch
- name: Verify script is executable
run: test -x groundhog
- name: Show help/status (no repo configured)
run: |
# Status should run without crashing even with no config
./groundhog status || true
- name: Verify install.sh syntax
run: bash -n install.sh
- name: Verify groundhog syntax
run: bash -n groundhog