Skip to content

Commit

Permalink
chore: temporarily switch to nightly short e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
  • Loading branch information
salasberryfin committed Nov 14, 2023
1 parent 9c7f490 commit 6bd08d8
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e-long.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Run nightly e2e tests

on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
#schedule:
# - cron: "0 0 * * *"
#push:
# branches:
# - main
workflow_dispatch:

concurrency: ci_e2e_tests
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/e2e-short-nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Run nightly short e2e tests

on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
workflow_dispatch:

concurrency: ci_e2e_tests

env:
NGROK_AUTHTOKEN: ${{ secrets.NGROK_AUTHTOKEN }}
NGROK_API_KEY: ${{ secrets.NGROK_API_KEY }}
RANCHER_HOSTNAME: ${{ secrets.NGROK_DOMAIN }}
RANCHER_PASSWORD: ${{ secrets.RANCHER_PASSWORD }}

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setupGo
uses: actions/setup-go@v4
with:
go-version: '=1.20.7'
- name: Run e2e tests
run: ISOLATED_MODE=true GINKGO_LABEL_FILTER=short make test-e2e
- name: Collect run artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: artifacts
path: _artifacts
- name: Send failed status to slack
if: failure()
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Rancher turtles E2E test run failed. Job trigger by ${{ github.event_name }} event(schedule means nightly run, push means push to main)."
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": ":github:",
"emoji": true
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 6bd08d8

Please sign in to comment.