diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6161431e..15620dc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,27 @@ on: - "v*.*.*" jobs: + test: + runs-on: ubuntu-latest + env: + PROJECT_NAME: "flintlock_release_e2e" + name: e2e tests + steps: + - uses: actions/checkout@v2 + - name: Run e2es + env: + METAL_AUTH_TOKEN: ${{ secrets.METAL_AUTH_TOKEN }} + run: | + pip3 install -r test/tools/requirements.txt + test/tools/run.py run-e2e -o ${{ secrets.EQUINIX_ORG_ID }} -p ${{ env.PROJECT_NAME }} + - name: Cleanup project + uses: weaveworks/metal-janitor-action@27a0594c5c92d85585b553fc0c5ef2a3de7bec95 + with: + metal_auth_token: ${{ secrets.METAL_AUTH_TOKEN }} + project_names: ${{ env.PROJECT_NAME }} build: runs-on: ubuntu-latest + needs: [test] steps: - name: Checkout uses: actions/checkout@v2 @@ -27,7 +46,7 @@ jobs: retention-days: 1 release: runs-on: ubuntu-latest - needs: [build] + needs: [test, build] steps: - name: Checkout uses: actions/checkout@v2 @@ -57,4 +76,4 @@ jobs: body: ${{ env.RELEASE_NOTES }} files: | bin/flintlockd_amd64 - bin/flintlockd_arm64 \ No newline at end of file + bin/flintlockd_arm64 diff --git a/docs/releasing.md b/docs/releasing.md index 35ba59ba..56a7a92c 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -31,6 +31,7 @@ git push origin "${RELEASE_VERSION}" ``` * Check the [release](https://github.com/weaveworks/flintlock/actions/workflows/release.yml) GitHub Actions workflow completes successfully. + This may take a few minutes as it runs the e2es as part of the process. ## Edit & Publish GitHub Release