Skip to content

Commit

Permalink
Add MacOS to Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavid committed Sep 22, 2023
1 parent 38c744a commit df216e1
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/lint.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: linters
name: test
'on': push
jobs:
lint:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,3 +24,26 @@ jobs:
with:
file_or_dir: .github/*.yml .github/workflows/*.yml cfg/*.yml
strict: true
test-macos:
runs-on: macos-latest
env:
BASE_SRC: https://github.com/rdavid/shellbase/archive/refs/tags/v0.9.20230808.tar.gz # yamllint disable-line
steps:
- uses: actions/checkout@v4
- run: |
curl --location --silent $BASE_SRC |
tar \
--directory /usr/local/bin \
--extract \
--gzip \
--strip-components=2 \
shellbase-0.9.20230808/lib/base.sh
brew install \
goredo \
shellcheck \
shfmt \
typos-cli \
vale \
yamllint
vale sync
redo -xx lint test

0 comments on commit df216e1

Please sign in to comment.