-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 993 Bytes
/
Copy pathci.yml
File metadata and controls
42 lines (33 loc) · 993 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
35
36
37
38
39
40
41
42
name: Shell CI
on:
push:
pull_request:
permissions:
contents: read
concurrency:
group: shell-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Check Bash syntax
run: bash -n LinuxClean.sh test-i18n.sh tests/test-unit.sh
- name: Run ShellCheck
run: shellcheck -x LinuxClean.sh test-i18n.sh tests/test-unit.sh
- name: Run unit tests
run: bash tests/test-unit.sh
- name: Run CLI and i18n smoke tests
run: sudo bash test-i18n.sh
- name: Exercise full dry-run
run: |
sudo env LC_ALL=C LANG=C bash LinuxClean.sh \
--mode full \
--yes \
--dry-run \
--no-color \
--max-items 0 \
--keep-days 30 | tee /tmp/linuxclean-preview.log
grep -F 'Preview completed; no changes were made' /tmp/linuxclean-preview.log