cargo-semver-checks/.github/workflows/ci.yml
2023-01-03 09:45:54 -05:00

40 lines
936 B
YAML

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: ./
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: ./
continue-on-error: true
- name: Check if the action failed
if: steps.action.outcome != 'failure'
run: exit 1