-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.49 KB
/
test.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
---
name: test
'on': push
env:
BASE_REL: 0.9.20241111
BASE_SRC: https://github.com/rdavid/shellbase/archive/refs/tags/v0.9.20241111.tar.gz # yamllint disable-line
jobs:
test-linux:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: sudo apt-get install asciidoctor
- uses: ludeeus/action-shellcheck@master
with:
additional_files: ./*.do ./app/*
ignore_names: pass
- uses: mfinelli/setup-shfmt@v3
- run: shfmt -d ./*.do ./app/[bcefimrsty]*
- uses: crate-ci/typos@master
- uses: errata-ai/vale-action@reviewdog
with:
fail_on_error: true
files: README.adoc
- uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: .github/*.yml .github/workflows/*.yml
strict: true
test-macos:
strategy:
matrix:
os: [macos-12, macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: |
brew install \
asciidoctor \
goredo \
shellcheck \
shfmt \
typos-cli \
vale \
yamllint
curl --location --silent $BASE_SRC |
tar \
--directory /usr/local/bin \
--extract \
--gzip \
--strip-components=2 \
shellbase-$BASE_REL/lib/base.sh
redo -xx