Skip to content

Commit

Permalink
Generalize the GitHub Continuous Integration process
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavid committed Feb 8, 2024
1 parent a931e9c commit a845334
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
name: linters
name: lint
'on': push
jobs:
lint:
runs-on: ubuntu-latest
text-linux:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ludeeus/action-shellcheck@master
Expand All @@ -21,3 +24,32 @@ jobs:
with:
file_or_dir: .github/*.yml .github/workflows/*.yml
strict: true
test-macos:
strategy:
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
env:
BASE_REL: 0.9.20240202
BASE_SRC:
https://github.com/rdavid/shellbase/archive/refs/tags/v$BASE_REL.tar.gz
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
vale sync
redo -xx lint

0 comments on commit a845334

Please sign in to comment.