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 09f6af9 commit 0620018
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .github/styles/config/vocabularies/Base/accept.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Gento
Matveev
openshift
OpenShift
[Oo]pen[Ss]hift
Rabkin
Sergey
30 changes: 18 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
---
name: test
'on': push
env:
BASE_REL: 0.9.20240202
BASE_SRC: https://github.com/rdavid/shellbase/archive/refs/tags/v0.9.20240202.tar.gz # yamllint disable-line
jobs:
test-linux:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
Expand All @@ -25,19 +31,13 @@ jobs:
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
strategy:
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
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 \
asciidoctor \
goredo \
Expand All @@ -46,5 +46,11 @@ jobs:
typos-cli \
vale \
yamllint
vale sync
curl --location --silent $BASE_SRC |
tar \
--directory /usr/local/bin \
--extract \
--gzip \
--strip-components=2 \
shellbase-$BASE_REL/lib/base.sh
redo -xx
4 changes: 2 additions & 2 deletions lint.do
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ redo-ifchange \
# shellcheck disable=SC2034 # Variable appears unused.
readonly \
BASE_APP_VERSION=0.9.20240107 \
BASE_APP_VERSION=0.9.20240208 \
BASE_MIN_VERSION=0.9.20231212 \
BSH=/usr/local/bin/base.sh
[ -r "$BSH" ] || {
Expand All @@ -25,7 +25,7 @@ cmd_exists shellcheck && shellcheck ./*.do app/*
cmd_exists shfmt && shfmt -d ./*.do app/*
cmd_exists typos && typos
cmd_exists vale && {
vale sync >/dev/null 2>&1 || :
vale sync
vale README.adoc
}
cmd_exists yamllint && yamllint .github/*.yml .github/workflows/*.yml

0 comments on commit 0620018

Please sign in to comment.