Skip to content

Commit

Permalink
Run the e2es as part of the release process
Browse files Browse the repository at this point in the history
We should not release anything unless we know it is at least not
catastrophically broken.
  • Loading branch information
Callisto13 committed Nov 12, 2021
1 parent 7be94a0 commit 2d33f6f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -57,4 +76,4 @@ jobs:
body: ${{ env.RELEASE_NOTES }}
files: |
bin/flintlockd_amd64
bin/flintlockd_arm64
bin/flintlockd_arm64
1 change: 1 addition & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2d33f6f

Please sign in to comment.