This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
Testool #339
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
name: Testool | |
on: | |
schedule: | |
- cron: '30 23 * * *' | |
workflow_dispatch: | |
inputs: | |
suites: | |
description: "Suites" | |
required: true | |
default: "light" | |
type: choice | |
options: | |
- light | |
- nightly | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
testool: | |
if: github.event.pull_request.draft == false | |
name: Testool | |
runs-on: [pse-runner] | |
env: | |
DATA: ${{ github.event.inputs.suites || 'nightly' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Wakeup testool | |
run: .github/testoolScripts/wakeUpRunner.sh | |
- name: Prepare repo | |
run: ssh testool "bash -s" -- < .github/testoolScripts/prepare.sh "$GITHUB_REF_NAME" | |
- name: Cargo build | |
run: ssh testool "bash -s" -- < .github/testoolScripts/build.sh | |
- name: Run tests | |
run: ssh testool "bash -s" -- < .github/testoolScripts/run.sh ${{ env.DATA }} | |
- name: Sync reports | |
run: ssh testool "bash -s" -- < .github/testoolScripts/sync.sh | |
- name: Cleanup | |
run: .github/testoolScripts/cleanup.sh | |