Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test/v2.0.0 #8

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading