Stacks-Core Tests #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Github workflow to run specified tests on demand | |
name: Standalone Tests | |
on: | |
workflow_call: | |
inputs: | |
workflow: | |
description: "Tests to run (required)" | |
required: true | |
type: string | |
workflow_dispatch: | |
inputs: | |
workflow: | |
description: "Tests to run (required)" | |
required: true | |
type: choice | |
options: | |
- Release Tests | |
- CI Tests | |
- Atlas Tests | |
- Bitcoin Tests | |
- Epoch Tests | |
- P2P Tests | |
- Slow Tests | |
- Stacks-Core Tests | |
- SBTC Tests | |
## Set the display name to the test being run | |
run-name: ${{ inputs.workflow }} | |
jobs: | |
## Runs every time to either create the required caches or confirm they already exist | |
create-cache: | |
name: Create Test Cache | |
uses: ./.github/workflows/create-cache.yml | |
##################################################### | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'CI Tests' | |
## - workflow is 'Stacks-Core Tests' | |
stacks-core-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'CI Tests' || | |
inputs.workflow == 'Stacks-Core Tests' | |
) | |
name: Stacks Core Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/stacks-core-tests.yml | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'CI Tests' | |
## - workflow is 'Bitcoin Tests' | |
bitcoin-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'CI Tests' || | |
inputs.workflow == 'Bitcoin Tests' | |
) | |
name: Bitcoin Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/bitcoin-tests.yml | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'CI Tests' | |
## - workflow is 'P2P Tests' | |
p2p-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'CI Tests' || | |
inputs.workflow == 'P2P Tests' | |
) | |
name: P2P Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/p2p-tests.yml | |
##################################################### | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'Atlas Tests' | |
atlas-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'Atlas Tests' | |
) | |
name: Atlas Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/atlas-tests.yml | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'Epoch Tests' | |
epoch-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'Epoch Tests' | |
) | |
name: Epoch Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/epoch-tests.yml | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'Slow Tests' | |
slow-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'Slow Tests' | |
) | |
name: Slow Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/slow-tests.yml | |
## Runs when: | |
## either or of the following: | |
## - workflow is 'Release Tests' | |
## - workflow is 'SBTC Tests' | |
sbtc-tests: | |
if: | | |
( | |
inputs.workflow == 'Release Tests' || | |
inputs.workflow == 'SBTC Tests' | |
) | |
name: SBTC Tests | |
needs: | |
- create-cache | |
uses: ./.github/workflows/sbtc-tests.yml | |