From 580156312924fe9e3a38fa98094e215291e73d7d Mon Sep 17 00:00:00 2001 From: Mieszko Grodzicki Date: Sat, 31 Dec 2022 13:03:06 +0100 Subject: [PATCH] Cleaning, both tests in single job. --- .github/workflows/ci.yml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6c0216..4e09601 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,43 +11,32 @@ env: CARGO_TERM_COLOR: always jobs: - run-on-patch-change: - name: Test without semver violation + test-action: + name: Test the action runs-on: ubuntu-latest steps: - - name: Checkout test repo + - name: Checkout test repository uses: actions/checkout@v3 with: repository: mgr0dzicki/cargo-semver-action-ref-slice - ref: patch_change persist-credentials: true - name: Checkout action uses: actions/checkout@v3 with: path: action + # test without semver violation + - name: Checkout branch patch_change + run: git checkout patch_change - name: Run action id: action uses: ./action/ - run-on-major-change: - name: Test with semver violation - runs-on: ubuntu-latest - steps: - - name: Checkout test repo - uses: actions/checkout@v3 - with: - repository: mgr0dzicki/cargo-semver-action-ref-slice - ref: major_change - persist-credentials: true - - name: Checkout action - uses: actions/checkout@v3 - with: - path: action + # test with semver violation + - name: Checkout branch major_change + run: git checkout major_change - name: Run action id: action uses: ./action/ continue-on-error: true - - name: Debug print steps - run: echo '${{ toJSON(steps) }}' - name: Check if the action failed if: steps.action.outcome != 'failure' run: exit 1