-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c07d3e
commit 9d1d2d0
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
name: nightly_e2e | ||
|
||
# TODO: put this back | ||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: 0 0 * * * | ||
pull_request: | ||
branches: | ||
- nightly-e2e | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-latest | ||
name: e2e tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.17.2' | ||
# TODO | ||
# have a custom action for the setup so that we can get outputs for the cleanup projects | ||
# rather than hardcoding | ||
- name: Run tests | ||
run: make test-e2e | ||
env: | ||
METAL_AUTH_TOKEN: ${{ secrets.METAL_AUTH_TOKEN }} | ||
- name: Cleanup projects | ||
run: | | ||
pip3 install -r hack/tools/requirements.txt | ||
hack/tools/run.py run-e2e -o ${{ secrets.EQUINIX_ORG_ID }} -p flintlock_nightly_e2e | ||
- name: Cleanup project | ||
uses: weaveworks/metal-janitor-action@b0373b3a6a8bb1e6573616040121c22ba230cdc8 | ||
with: | ||
metal_auth_token: ${{ secrets.METAL_AUTH_TOKEN }} | ||
project_names: 'quicksilver_e2e_1' | ||
project_names: 'flintlock_nightly_e2e' |