mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-22 16:09:33 +01:00
Improve jobs names
This commit is contained in:
parent
aa34edcb6d
commit
9ba317dc14
1 changed files with 7 additions and 9 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue