mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-27 02:19:33 +01:00
8b981cde1a
* Add exclude, allow lists in package * Add test for input exclude * Second dummy crate in test workspace * New tests * Fix cache key * Forgot about flat() * Reflect changes in docs * New key in cache test * Shorter job name * Allowed to fail -> expected to fail * Update README.md Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> * Hash inputs in cache key * Update cache test * Update README --------- Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
25 lines
979 B
YAML
25 lines
979 B
YAML
name: Setup test workspace
|
|
inputs:
|
|
ref-slice-ref:
|
|
description: 'Git reference (branch name, tag or commit hash) of the ref_slice test fork to checkout'
|
|
required: true
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Checkout the ref-slice fork
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: mgr0dzicki/cargo-semver-action-ref-slice
|
|
ref: ${{ inputs.ref-slice-ref }}
|
|
persist-credentials: true
|
|
path: ref_slice
|
|
- name: Create dummy crate
|
|
# This crates do not have matching baselines on crates.io, so any try
|
|
# of checking them should make cargo-semver-checks fail.
|
|
run: |
|
|
cargo new cargo-semver-action-dummy --lib
|
|
cargo new cargo-semver-action-dummy-2 --lib
|
|
shell: bash
|
|
- name: Create workspace Cargo.toml
|
|
run: echo -e "[workspace]\nmembers=['ref_slice','cargo-semver-action-dummy','cargo-semver-action-dummy-2']" > Cargo.toml
|
|
shell: bash
|