Improve jobs names

This commit is contained in:
Mieszko Grodzicki 2023-01-01 13:41:20 +01:00 committed by Predrag Gruevski
parent aa34edcb6d
commit 9ba317dc14

View file

@ -15,29 +15,27 @@ jobs:
name: Test the action name: Test the action
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout test repository - name: Checkout the test repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: mgr0dzicki/cargo-semver-action-ref-slice repository: mgr0dzicki/cargo-semver-action-ref-slice
fetch-depth: 0 fetch-depth: 0
persist-credentials: true persist-credentials: true
- name: Checkout action - name: Checkout the action
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
path: action path: action
# test without semver violation - name: Checkout the test with patch change and patch version bump
- name: Checkout branch patch_change
run: git checkout patch_change run: git checkout patch_change
- name: Run action - name: Run the action
uses: ./action/ uses: ./action/
# test with semver violation - name: Checkout the test with major change and patch version bump
- name: Checkout branch major_change
run: git checkout major_change run: git checkout major_change
- name: Run action - name: Run the action (allowed to fail)
id: action_major id: action_major
uses: ./action/ uses: ./action/
continue-on-error: true continue-on-error: true
- name: Check action outcome - name: Check the action outcome
run: | run: |
if [[ "${{ steps.action_major.outcome }}" != 'failure' ]]; then if [[ "${{ steps.action_major.outcome }}" != 'failure' ]]; then
echo "Error! The action should have failed because of the breaking change, but it has not." echo "Error! The action should have failed because of the breaking change, but it has not."