Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the e2es as part of the release process #254

Merged
merged 1 commit into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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