2023-02-25 14:16:59 +01:00
|
|
|
name: Setup test workspace
|
2023-02-27 20:35:32 +01:00
|
|
|
inputs:
|
|
|
|
ref-slice-ref:
|
|
|
|
description: 'Reference of the ref_slice to checkout'
|
|
|
|
required: false
|
|
|
|
default: ''
|
2023-02-25 14:16:59 +01:00
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- name: Checkout the ref-slice fork
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: mgr0dzicki/cargo-semver-action-ref-slice
|
2023-02-27 20:35:32 +01:00
|
|
|
ref: ${{ inputs.ref-slice-ref }}
|
2023-02-25 14:16:59 +01:00
|
|
|
persist-credentials: true
|
|
|
|
path: ref_slice
|
|
|
|
- name: Create dummy crate
|
|
|
|
# This crate does not have a matching baseline on crates.io, so any try
|
|
|
|
# of checking it should make cargo-semver-checks fail.
|
|
|
|
run: cargo new cargo-semver-action-dummy --lib
|
|
|
|
shell: bash
|
|
|
|
- name: Create workspace Cargo.toml
|
|
|
|
run: echo -e "[workspace]\nmembers=['ref_slice','cargo-semver-action-dummy']" > Cargo.toml
|
|
|
|
shell: bash
|