-
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 904 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (32 loc) · 904 Bytes
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
name: CI
on:
push:
branches: [main, dev]
pull_request:
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Lint (errors)
run: |
shopt -s globstar nullglob
shellcheck -S error \
setup.sh uninstall.sh update.sh \
src/emerger.sh src/lib/*.sh
- name: Lint (warnings, non-blocking)
run: |
shopt -s globstar nullglob
shellcheck -S warning \
setup.sh uninstall.sh update.sh \
src/emerger.sh src/lib/*.sh || true
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install bats
run: sudo apt-get update && sudo apt-get install -y bats
- name: Run bats
run: bats tests/