mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-25 17:39:33 +01:00
Tests - initial version.
This commit is contained in:
parent
cee821a331
commit
2816990fcf
1 changed files with 40 additions and 0 deletions
40
.github/workflows/ci.yml
vendored
Normal file
40
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
run-on-patch-change:
|
||||
name: Test without semver violation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'mgr0dzicki/cargo-semver-action-ref-slice@patch_change'
|
||||
persist-credentials: true
|
||||
- name: Run action
|
||||
uses: ${{ github.repository }}
|
||||
run-on-major-change:
|
||||
name: Test with semver violation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: 'mgr0dzicki/cargo-semver-action-ref-slice@major_change'
|
||||
persist-credentials: true
|
||||
- name: Run action
|
||||
id: action
|
||||
uses: ${{ github.repository }}
|
||||
continue-on-error: true
|
||||
- name: Check if the action failed
|
||||
if: steps.action.outcome != 'failure'
|
||||
run: exit 1
|
Loading…
Reference in a new issue