mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-26 01:49:32 +01:00
Cleaning, both tests in single job.
This commit is contained in:
parent
58fab5bd52
commit
5801563129
1 changed files with 9 additions and 20 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue