From 34a822181c44fc906c24ece2dc2025a9cc5c77b3 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 9 Feb 2024 21:57:02 +0100 Subject: [PATCH 1/2] Test v2 action --- .github/workflows/ci.yml | 2 +- .github/workflows/integration-test.yml | 10 +++++----- .github/workflows/quickstart.yml | 2 +- .github/workflows/unit-test.yml | 6 +++--- README.md | 14 +++++++------- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47d2d87..c332e86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: setup-matrix - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest, windows-latest, macos-latest] diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3aa629d..4941b31 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -17,7 +17,7 @@ jobs: outputs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - - uses: druzsan/setup-matrix@v2.0.0 + - uses: druzsan/setup-matrix@v2 with: matrix: | # Setup matrix with OS and Python version os: [ubuntu-latest, windows-latest] @@ -33,7 +33,7 @@ jobs: outputs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - - uses: druzsan/setup-matrix@v2.0.0 + - uses: druzsan/setup-matrix@v2 with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' # Jobs expected to fail @@ -43,7 +43,7 @@ jobs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 continue-on-error: true - if: steps.expected-to-fail.outcome != 'failure' run: echo "Step expected to fail didn't fail" && exit 1 @@ -51,7 +51,7 @@ jobs: runs-on: windows-latest steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' continue-on-error: true @@ -61,7 +61,7 @@ jobs: runs-on: macos-latest steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' continue-on-error: true diff --git a/.github/workflows/quickstart.yml b/.github/workflows/quickstart.yml index 2028eaf..3c755b7 100644 --- a/.github/workflows/quickstart.yml +++ b/.github/workflows/quickstart.yml @@ -19,7 +19,7 @@ jobs: steps: - name: '🧱 Build Matrix' id: setup-matrix - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: # Use | to preserve valid YAML syntax matrix: | diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 46e11b9..a79b561 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -21,14 +21,14 @@ jobs: steps: # Setup matrix on a dev branch - if: startsWith(github.ref, 'refs/tags/') - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 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@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest] @@ -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@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest] diff --git a/README.md b/README.md index 38ed9a7..23956d8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ jobs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: setup-matrix - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: # Use | to preserve valid YAML syntax matrix: | @@ -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@v2.0.0 +uses: druzsan/setup-matrix@v2 with: matrix: | # Setup matrix with OS and Python version os: [ubuntu-latest, windows-latest] @@ -83,7 +83,7 @@ with: Flow YAML syntax is also supported: ```yaml -uses: druzsan/setup-matrix@v2.0.0 +uses: druzsan/setup-matrix@v2 with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' ``` @@ -120,7 +120,7 @@ setup-matrix: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: setup-matrix - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest, windows-latest, macos-latest] @@ -190,14 +190,14 @@ setup-matrix: steps: # Setup matrix on a dev branch - if: startsWith(github.ref, 'refs/tags/') - uses: druzsan/setup-matrix@v2.0.0 + uses: druzsan/setup-matrix@v2 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@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest] @@ -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@v2.0.0 + uses: druzsan/setup-matrix@v2 with: matrix: | os: [ubuntu-latest] From 092030238a49d076b889a3ada16843e0f4e5f8ac Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 9 Feb 2024 22:13:02 +0100 Subject: [PATCH 2/2] Switch ref in workflows back to main --- .github/workflows/ci.yml | 2 +- .github/workflows/integration-test.yml | 10 +++++----- .github/workflows/quickstart.yml | 2 +- .github/workflows/unit-test.yml | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c332e86..09ee9f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: setup-matrix - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main with: matrix: | os: [ubuntu-latest, windows-latest, macos-latest] diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 4941b31..0139921 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -17,7 +17,7 @@ jobs: outputs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - - uses: druzsan/setup-matrix@v2 + - uses: druzsan/setup-matrix@main with: matrix: | # Setup matrix with OS and Python version os: [ubuntu-latest, windows-latest] @@ -33,7 +33,7 @@ jobs: outputs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - - uses: druzsan/setup-matrix@v2 + - uses: druzsan/setup-matrix@main with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' # Jobs expected to fail @@ -43,7 +43,7 @@ jobs: matrix: ${{ steps.setup-matrix.outputs.matrix }} steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main continue-on-error: true - if: steps.expected-to-fail.outcome != 'failure' run: echo "Step expected to fail didn't fail" && exit 1 @@ -51,7 +51,7 @@ jobs: runs-on: windows-latest steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' continue-on-error: true @@ -61,7 +61,7 @@ jobs: runs-on: macos-latest steps: - id: expected-to-fail - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main with: matrix: '{ os: [ubuntu-latest, windows-latest], python-version: [3.8, 3.10, 3.12] }' continue-on-error: true diff --git a/.github/workflows/quickstart.yml b/.github/workflows/quickstart.yml index 3c755b7..2bb55b5 100644 --- a/.github/workflows/quickstart.yml +++ b/.github/workflows/quickstart.yml @@ -19,7 +19,7 @@ jobs: steps: - name: '🧱 Build Matrix' id: setup-matrix - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main with: # Use | to preserve valid YAML syntax matrix: | diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a79b561..9095091 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -21,14 +21,14 @@ jobs: steps: # Setup matrix on a dev branch - if: startsWith(github.ref, 'refs/tags/') - uses: druzsan/setup-matrix@v2 + uses: druzsan/setup-matrix@main 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@v2 + uses: druzsan/setup-matrix@main with: matrix: | os: [ubuntu-latest] @@ -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@v2 + uses: druzsan/setup-matrix@main with: matrix: | os: [ubuntu-latest]