Skip to content

e2e

e2e #2855

Workflow file for this run

name: e2e
on:
pull_request:
paths-ignore:
- 'CODE_OF_CONDUCT.md'
- 'README.md'
- 'Contributing.md'
- '.github/workflows/**'
branches:
- main
push:
paths-ignore:
- '.github/workflows/**'
branches:
- main
schedule:
- cron: '0 6 * * *' # 6 AM UTC everyday for default branch
workflow_dispatch:
permissions:
contents: read # for actions/checkout to fetch code
jobs:
run-e2e-suite:
runs-on: large_runner
steps:
- name: Self Hosted Runner Post Job Cleanup Action
uses: TooMuch4U/actions-clean@9b358e33df99574ac0bdf2e92fa3db1ae1415563
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Setup Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Restore Go cache
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
with:
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Kubernetes
uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab
with:
install_only: true
- uses: yokawasa/action-setup-kube-tools@3e3886c11bfa25fe33f8eb90f59542dd151da442
with:
kustomize: '5.0.1'
tilt: '0.32.2'
- name: Run E2E tests
id: e2e-tests
run: make e2e-verbose
- name: Notify on Failure
id: slack-notification
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
if: ${{ github.ref_name == 'main' && github.event_name == 'schedule' && always() }}
with:
method: chat.postMessage
token: ${{ secrets.OCM_GITHUB_SLACK_BOT_TOKEN }}
payload: |
{
"channel": "C03NF7KH128",
"text": "${{ github.repository }} e2e Tests Status: ${{ steps.e2e-tests.conclusion }}",
"blocks": [
{
"type": "section",
"text":
{
"type": "mrkdwn",
"text": "e2e Test for OCM Controller ${{ job.status == 'success' && ':white_check_mark:' || ':x:' }} <https://github.com/open-component-model/ocm-controller/actions/workflows/e2e.yaml|Github Action>"
}
}
]
}