mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2025-01-19 01:14:43 +01:00
Add action checkout
This commit is contained in:
parent
855a55792a
commit
23d16da9fa
1 changed files with 12 additions and 5 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -15,27 +15,34 @@ jobs:
|
||||||
name: Test without semver violation
|
name: Test without semver violation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout test repo
|
||||||
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
|
ref: patch_change
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
- name: Checkout action
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: action
|
||||||
- name: Run action
|
- name: Run action
|
||||||
uses: ./
|
uses: ./action/
|
||||||
run-on-major-change:
|
run-on-major-change:
|
||||||
name: Test with semver violation
|
name: Test with semver violation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout test repo
|
||||||
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: major_change
|
ref: major_change
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
- name: Checkout action
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: action
|
||||||
- name: Run action
|
- name: Run action
|
||||||
id: action
|
uses: ./action/
|
||||||
uses: ./
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Check if the action failed
|
- name: Check if the action failed
|
||||||
if: steps.action.outcome != 'failure'
|
if: steps.action.outcome != 'failure'
|
||||||
|
|
Loading…
Add table
Reference in a new issue