New node to test #11
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: review | |
on: | |
pull_request: | |
paths: | |
- '*.c' | |
- '*.h' | |
jobs: | |
upstream_tests: | |
if: ${{ github.repository == 'md-raid-utilities/mdadm' }} | |
runs-on: self-hosted | |
timeout-minutes: 120 | |
name: upstream tests | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: 'Prepare machine' | |
run: | | |
cd .. | |
vagrant halt | |
vagrant status | |
vagrant up | |
- name: 'Run tests' | |
run: | | |
cd .. | |
vagrant ssh -c "cd /home/vagrant/host/mdadm && .github/tools/run_mdadm_tests.sh" | |
- name: "Save artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Logs from failed tests" | |
path: /var/tmp/fail*.log | |
cleanup: | |
runs-on: self-hosted | |
steps: | |
- name: Restore clean VM | |
run: | | |
cd .. | |
vagrant ssh -c "sudo mdadm -Ss" | |
vagrant halt | |