Add reservation test #7
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: Sanity test testing farm github runners | |
on: | |
push: | |
pull_request: | |
jobs: | |
sanity: | |
runs-on: testing-farm | |
steps: | |
- name: Run testing-farm sanity test | |
env: | |
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
run: | | |
testing-farm request --compose Fedora-40 --plan /testing-farm/sanity --git-url https://gitlab.com/testing-farm/tests | |
- name: Run testing-farm reservation test | |
env: | |
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
run: | | |
testing-farm reserve --compose Fedora-40 --duration 1 |& tee output <<< "exit" | |
ssh -oUserKnownHostsFile=/dev/null $(grep -Eo root@[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ output) return2testingfarm |