mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-06 09:26:42 +00:00
111 lines
2.8 KiB
YAML
111 lines
2.8 KiB
YAML
name: e2e
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
paths:
|
|
- '.github/workflows/e2e.yml'
|
|
- 'api/**'
|
|
- 'controllers/**'
|
|
- 'internal/**'
|
|
- 'pkg/**'
|
|
- 'e2e/*'
|
|
- 'Dockerfile'
|
|
- 'go.*'
|
|
- 'main.go'
|
|
- 'Makefile'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
e2e:
|
|
name: E2E Testing (CE)
|
|
runs-on:
|
|
labels: ubuntu-latest-8-cores
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5
|
|
|
|
- name: e2e
|
|
run: sudo make e2e
|
|
|
|
e2e-openshift-CE:
|
|
name: E2E OpenShift Testing (CE)
|
|
runs-on:
|
|
labels: ubuntu-latest-8-cores
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5
|
|
|
|
- name: e2e
|
|
run: sudo make e2e-openshift
|
|
|
|
run-e2e:
|
|
name: E2E Testing
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
k8s-version:
|
|
- 'v1.31.0'
|
|
- 'v1.32.0'
|
|
- 'v1.33.0'
|
|
- 'v1.34.0'
|
|
runs-on:
|
|
labels: ubuntu-latest-8-cores
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
repository: ${{ github.event.client_payload.repo }}
|
|
ref: ${{ github.event.client_payload.sha }}
|
|
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5
|
|
|
|
- name: e2e (Enterprise)
|
|
run: sudo KUBERNETES_SUPPORTED_VERSION=${{ matrix.k8s-version }} make e2e
|
|
|
|
e2e-openshift:
|
|
name: E2E Testing (OpenShift)
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os-version: # https://quay.io/repository/minc-org/minc?tab=tags&tag=latest
|
|
- '4.18.0-okd-scos.9'
|
|
- '4.19.0-okd-scos.17'
|
|
runs-on: ubuntu-latest-8-cores
|
|
steps:
|
|
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5
|
|
|
|
- name: e2e
|
|
run: sudo OS_SUPPORTED_VERSION=${{ matrix.os-version }} make e2e-openshift
|