Skip to content

Commit

Permalink
Merge pull request #8 from druzsan/test/v2.0.0
Browse files Browse the repository at this point in the history
Test/v2.0.0
  • Loading branch information
druzsan authored Feb 9, 2024
2 parents dda6d0c + eed0fc7 commit 7acf839
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- id: setup-matrix
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest, windows-latest, macos-latest]
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- uses: druzsan/setup-matrix@main
- uses: druzsan/setup-matrix@v2.0.0
with:
matrix: | # Setup matrix with OS and Python version
os: [ubuntu-latest, windows-latest]
Expand All @@ -33,7 +33,7 @@ jobs:
outputs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- uses: druzsan/setup-matrix@main
- uses: druzsan/setup-matrix@v2.0.0
with:
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
# Jobs expected to fail
Expand All @@ -43,15 +43,15 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- id: expected-to-fail
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
continue-on-error: true
- if: steps.expected-to-fail.outcome != 'failure'
run: echo "Step expected to fail didn't fail" && exit 1
setup-matrix-windows:
runs-on: windows-latest
steps:
- id: expected-to-fail
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
continue-on-error: true
Expand All @@ -61,7 +61,7 @@ jobs:
runs-on: macos-latest
steps:
- id: expected-to-fail
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- name: '🧱 Build Matrix'
id: setup-matrix
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
# Use | to preserve valid YAML syntax
matrix: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
steps:
# Setup matrix on a dev branch
- if: startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.10, 3.12]
# Setup matrix on the main branch
- if: github.ref == 'refs/heads/main'
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest]
Expand All @@ -40,7 +40,7 @@ jobs:
python-version: 3.8
# Setup matrix on a tag
- if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest]
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- id: setup-matrix
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
# Use | to preserve valid YAML syntax
matrix: |
Expand Down Expand Up @@ -67,7 +67,7 @@ Not only syntax validity, but also built-in matrix restrictions (e.g. empty resu
It is highly recommended to use `|` prefix for multi-line strings:

```yaml
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: | # Setup matrix with OS and Python version
os: [ubuntu-latest, windows-latest]
Expand All @@ -83,7 +83,7 @@ with:
Flow YAML syntax is also supported:

```yaml
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }'
```
Expand Down Expand Up @@ -120,7 +120,7 @@ setup-matrix:
matrix: ${{ steps.setup-matrix.outputs.matrix }}
steps:
- id: setup-matrix
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest, windows-latest, macos-latest]
Expand Down Expand Up @@ -190,14 +190,14 @@ setup-matrix:
steps:
# Setup matrix on a dev branch
- if: startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.10, 3.12]
# Setup matrix on the main branch
- if: github.ref == 'refs/heads/main'
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest]
Expand All @@ -209,7 +209,7 @@ setup-matrix:
python-version: 3.8
# Setup matrix on a tag
- if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
uses: druzsan/setup-matrix@main
uses: druzsan/setup-matrix@v2.0.0
with:
matrix: |
os: [ubuntu-latest]
Expand Down

0 comments on commit 7acf839

Please sign in to comment.