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
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-on-patch-change:
|
test-action:
|
||||||
name: Test without semver violation
|
name: Test the action
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout test repo
|
- name: Checkout 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
|
||||||
ref: patch_change
|
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
- name: Checkout action
|
- name: Checkout action
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: action
|
path: action
|
||||||
|
# test without semver violation
|
||||||
|
- name: Checkout branch patch_change
|
||||||
|
run: git checkout patch_change
|
||||||
- name: Run action
|
- name: Run action
|
||||||
id: action
|
id: action
|
||||||
uses: ./action/
|
uses: ./action/
|
||||||
run-on-major-change:
|
# test with semver violation
|
||||||
name: Test with semver violation
|
- name: Checkout branch major_change
|
||||||
runs-on: ubuntu-latest
|
run: git checkout major_change
|
||||||
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
|
|
||||||
- name: Run action
|
- name: Run action
|
||||||
id: action
|
id: action
|
||||||
uses: ./action/
|
uses: ./action/
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Debug print steps
|
|
||||||
run: echo '${{ toJSON(steps) }}'
|
|
||||||
- name: Check if the action failed
|
- name: Check if the action failed
|
||||||
if: steps.action.outcome != 'failure'
|
if: steps.action.outcome != 'failure'
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
|
Loading…
Reference in a new issue