ci: Reorder spectesting to fix success notify

Turns out you can't run a script in the workdir after you `rm -rf` the
workspace!
This commit is contained in:
Paul Hinze 2022-05-13 16:23:52 -05:00
parent 0c7d5f2eee
commit ebd03d604b
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -84,6 +84,15 @@ jobs:
name: vagrant-spec-${{matrix.providers}}.log name: vagrant-spec-${{matrix.providers}}.log
path: ${{ github.workspace }}/vagrant-spec.log path: ${{ github.workspace }}/vagrant-spec.log
notify-on-success:
runs-on: self-hosted
name: Notify on Success
needs: spec-tests
if: success()
steps:
- name: Notify on Success
run: ./.ci/spec/notify-success.sh
cleanup: cleanup:
runs-on: self-hosted runs-on: self-hosted
name: Cleanup Post Vagrant-Spec Tests name: Cleanup Post Vagrant-Spec Tests
@ -95,11 +104,3 @@ jobs:
- name: Clean Workspace - name: Clean Workspace
run: rm -rf ${{ github.workspace }} run: rm -rf ${{ github.workspace }}
notify-on-success:
runs-on: self-hosted
name: Notify on Success
needs: spec-tests
if: success()
steps:
- name: Notify on Success
run: ./.ci/spec/notify-success.sh