Skip to content

Commit

Permalink
WIP4
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Nov 22, 2023
1 parent 8643b1e commit 149f5b1
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,27 @@ jobs:
matrix:
os_deps:
- |
{"os": "ubuntu-latest"}
{ "os": "ubuntu-latest" }
- |
{"os": "macos-11"}
{ "os": "macos-11" }
- |
{"os": "macos-11", "deps": ["coreutils", "gnu-sed"]}
{
"os": "macos-11",
"deps": ["coreutils", "gnu-sed"],
"deps_desc": " + deps coreutils gnu-sed"
}
- |
{"os": "macos-latest"}
{ "os": "macos-latest" }
- |
{"os": "macos-latest", "deps": ["coreutils", "gnu-sed"]}
{
"os": "macos-latest",
"deps": ["coreutils", "gnu-sed"],
"deps_desc": " + deps coreutils gnu-sed"
}
fail-fast: false
max-parallel: 64
name: Test on ${{ matrix.os_deps }}
# https://docs.github.com/en/actions/learn-github-actions/expressions
name: CI on ${{ fromJSON(matrix.os_deps).os }}${{ fromJSON(matrix.os_deps).deps_desc }}

steps:
- uses: actions/checkout@v3
Expand All @@ -34,7 +43,8 @@ jobs:
# https://docs.github.com/en/actions/learn-github-actions/variables#detecting-the-operating-system
# https://docs.github.com/en/actions/learn-github-actions/expressions
if: runner.os == 'macOS'
# https://github.com/orgs/community/discussions/27125#discussioncomment-3254720
- run: brew install ${{ join(fromJSON(matrix.os_deps).deps, ' ') }}
# how to get object length?
# https://github.com/orgs/community/discussions/27125#discussioncomment-3254720
if: runner.os == 'macOS' && fromJSON(matrix.os_deps).deps[0] != null
- run: test-cases/integration-test.sh

0 comments on commit 149f5b1

Please sign in to comment.