|
| 1 | +name: ci |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - devel |
| 7 | + pull_request: |
| 8 | + branches: |
| 9 | + - devel |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +jobs: |
| 19 | + spindle-serial-ubuntu: |
| 20 | + name: Testsuite (Serial, Ubuntu) |
| 21 | + environment: Spindle CI |
| 22 | + runs-on: ubuntu-latest |
| 23 | + timeout-minutes: 20 |
| 24 | + steps: |
| 25 | + - name: Check out Spindle |
| 26 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 27 | + |
| 28 | + - name: Setup Docker Compose |
| 29 | + uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 |
| 30 | + with: |
| 31 | + version: latest |
| 32 | + |
| 33 | + - name: Build spindle-serial-ubuntu image |
| 34 | + id: serial-ubuntu-build |
| 35 | + run: | |
| 36 | + cd containers/spindle-serial-ubuntu |
| 37 | + docker compose --progress=plain build |
| 38 | +
|
| 39 | + - name: Bring spindle-serial-ubuntu up |
| 40 | + id: serial-ubuntu-up |
| 41 | + run: | |
| 42 | + cd containers/spindle-serial-ubuntu |
| 43 | + docker compose up -d |
| 44 | +
|
| 45 | + - name: Verify munge works in spindle-serial-ubuntu |
| 46 | + id: serial-ubuntu-munge |
| 47 | + run: | |
| 48 | + docker exec spindlenode bash -c 'munge -n | unmunge' |
| 49 | +
|
| 50 | + - name: Run spindle-serial-ubuntu testsuite |
| 51 | + id: serial-ubuntu-testsuite |
| 52 | + run: | |
| 53 | + docker exec spindlenode bash -c 'cd Spindle-build/testsuite && ./runTests' |
| 54 | +
|
| 55 | + - name: Bring spindle-serial-ubuntu down |
| 56 | + id: serial-ubuntu-down |
| 57 | + if: ${{ always() }} |
| 58 | + continue-on-error: true |
| 59 | + run: | |
| 60 | + cd containers/spindle-serial-ubuntu |
| 61 | + docker compose down |
| 62 | +
|
| 63 | + spindle-flux-ubuntu: |
| 64 | + name: Testsuite (Flux, Ubuntu) |
| 65 | + environment: Spindle CI |
| 66 | + runs-on: ubuntu-latest |
| 67 | + timeout-minutes: 20 |
| 68 | + steps: |
| 69 | + - name: Check out Spindle |
| 70 | + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 71 | + |
| 72 | + - name: Setup Docker Compose |
| 73 | + uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 |
| 74 | + with: |
| 75 | + version: latest |
| 76 | + |
| 77 | + - name: Build spindle-flux-ubuntu image |
| 78 | + id: flux-ubuntu-build |
| 79 | + run: | |
| 80 | + cd containers/spindle-flux-ubuntu |
| 81 | + docker compose --progress=plain build |
| 82 | +
|
| 83 | + - name: Bring spindle-flux-ubuntu up |
| 84 | + id: flux-ubuntu-up |
| 85 | + run: | |
| 86 | + cd containers/spindle-flux-ubuntu |
| 87 | + docker compose up -d --wait --wait-timeout 60 |
| 88 | +
|
| 89 | + - name: Verify munge works in spindle-flux-ubuntu |
| 90 | + id: flux-ubuntu-munge |
| 91 | + run: | |
| 92 | + docker exec node-1 bash -c 'munge -n | unmunge' |
| 93 | +
|
| 94 | + - name: Run spindle-flux-ubuntu testsuite |
| 95 | + id: flux-ubuntu-testsuite |
| 96 | + run: | |
| 97 | + docker exec node-1 bash -c 'cd Spindle-build/testsuite && flux alloc --nodes=${workers} ./runTests --nodes=${workers} --tasks-per-node=3' |
| 98 | +
|
| 99 | + - name: Bring spindle-flux-ubuntu down |
| 100 | + id: flux-ubuntu-down |
| 101 | + if: ${{ always() }} |
| 102 | + continue-on-error: true |
| 103 | + run: | |
| 104 | + cd containers/spindle-flux-ubuntu |
| 105 | + docker compose down |
| 106 | +
|
0 commit comments