2023-02-25 14:16:59 +01:00
|
|
|
name: Setup test workspace
|
2023-02-27 20:35:32 +01:00
|
|
|
inputs:
|
|
|
|
ref-slice-ref:
|
2023-02-27 21:56:54 +01:00
|
|
|
description: 'Git reference (branch name, tag or commit hash) of the ref_slice test fork to checkout'
|
2023-02-28 10:35:25 +01:00
|
|
|
required: true
|
2023-02-25 14:16:59 +01:00
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
|
|
|
- name: Checkout the ref-slice fork
|
2024-07-02 18:50:12 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-02-25 14:16:59 +01:00
|
|
|
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
|
2023-04-23 20:24:06 +02:00
|
|
|
# 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
|
2023-02-25 14:16:59 +01:00
|
|
|
shell: bash
|
|
|
|
- name: Create workspace Cargo.toml
|
2023-04-23 20:24:06 +02:00
|
|
|
run: echo -e "[workspace]\nmembers=['ref_slice','cargo-semver-action-dummy','cargo-semver-action-dummy-2']" > Cargo.toml
|
2023-02-25 14:16:59 +01:00
|
|
|
shell: bash
|