cargo-semver-checks/.github/workflows/setup-test-workspace/action.yml
Mieszko Grodzicki 8b981cde1a
Add input exclude, allow list in package (#40)
* 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>
2023-04-23 14:24:06 -04:00

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