From 00b34d8b0a9e4dcd03145d2f955e713282a5e9bd Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 3 Aug 2022 08:39:39 -0700 Subject: [PATCH] Isolate spec runs to acceptance repository --- .github/workflows/spectesting.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spectesting.yml b/.github/workflows/spectesting.yml index e0a532eab..5b2d60eaf 100644 --- a/.github/workflows/spectesting.yml +++ b/.github/workflows/spectesting.yml @@ -9,6 +9,7 @@ on: jobs: setup-packet: + if: github.repository == 'hashicorp/vagrant-acceptance' runs-on: self-hosted name: Build Packet Instance steps: @@ -21,6 +22,7 @@ jobs: VAGRANT_CI_LOADER_BUCKET: ${{ secrets.VAGRANT_CI_LOADER_BUCKET }} setup-hosts: + if: github.repository == 'hashicorp/vagrant-acceptance' runs-on: self-hosted name: Vagrant-Spec Start Hosts needs: setup-packet @@ -34,7 +36,7 @@ jobs: uses: actions/checkout@v1 with: submodules: 'recursive' - - name: Create packet host for tests (provider ${{ matrix.providers }}) + - name: Create hosts for tests (provider ${{ matrix.providers }}) run: ./.ci/spec/create-hosts.sh working-directory: ${{github.workspace}} env: @@ -45,6 +47,7 @@ jobs: VAGRANT_CI_LOADER_BUCKET: ${{ secrets.VAGRANT_CI_LOADER_BUCKET }} spec-tests: + if: github.repository == 'hashicorp/vagrant-acceptance' runs-on: self-hosted name: Vagrant-Spec Tests needs: setup-hosts @@ -85,6 +88,7 @@ jobs: path: ${{ github.workspace }}/vagrant-spec.log notify-on-success: + if: github.repository == 'hashicorp/vagrant-acceptance' runs-on: self-hosted name: Notify on Success needs: spec-tests @@ -94,6 +98,7 @@ jobs: run: ./.ci/spec/notify-success.sh cleanup: + if: github.repository == 'hashicorp/vagrant-acceptance' runs-on: self-hosted name: Cleanup Post Vagrant-Spec Tests needs: [spec-tests, notify-on-success]