mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-25 17:39:33 +01:00
23 lines
883 B
YAML
23 lines
883 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 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
|