mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-20 08:13:23 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](755da8c3cf...ac59398561)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
124 lines
3.0 KiB
YAML
124 lines
3.0 KiB
YAML
name: E2E Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
tags:
|
|
- v*
|
|
workflow_dispatch: {}
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
# Common versions
|
|
GO_VERSION: '1.19'
|
|
|
|
jobs:
|
|
|
|
detect-noop:
|
|
permissions:
|
|
actions: write
|
|
runs-on: ubuntu-20.04
|
|
outputs:
|
|
noop: ${{ steps.noop.outputs.should_skip }}
|
|
steps:
|
|
- name: Detect No-op Changes
|
|
id: noop
|
|
uses: fkirc/skip-duplicate-actions@12aca0a884f6137d619d6a8a09fcc3406ced5281
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
|
|
do_not_skip: '["workflow_dispatch", "schedule", "push"]'
|
|
continue-on-error: true
|
|
|
|
e2e-tests:
|
|
runs-on: aliyun
|
|
needs: [ detect-noop ]
|
|
if: needs.detect-noop.outputs.noop != 'true'
|
|
strategy:
|
|
matrix:
|
|
k8s-version: ["v1.20","v1.24"]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.k8s-version }}
|
|
cancel-in-progress: true
|
|
|
|
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Tear down K3d if exist
|
|
run: |
|
|
k3d cluster delete || true
|
|
k3d cluster delete worker || true
|
|
|
|
- name: Calculate K3d args
|
|
run: |
|
|
EGRESS_ARG=""
|
|
if [[ "${{ matrix.k8s-version }}" == v1.24 ]]; then
|
|
EGRESS_ARG="--k3s-arg --egress-selector-mode=disabled@server:0"
|
|
fi
|
|
echo "EGRESS_ARG=${EGRESS_ARG}" >> $GITHUB_ENV
|
|
|
|
- name: Setup K3d
|
|
uses: nolar/setup-k3d-k3s@293b8e5822a20bc0d5bcdd4826f1a665e72aba96
|
|
with:
|
|
version: ${{ matrix.k8s-version }}
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
k3d-args: ${{ env.EGRESS_ARG }}
|
|
|
|
- name: Load image to k3d cluster
|
|
run: make image-load
|
|
|
|
- name: Run Make
|
|
run: make
|
|
|
|
- name: Prepare for e2e tests
|
|
run: |
|
|
make e2e-cleanup
|
|
make e2e-setup-core
|
|
helm test -n vela-system kubevela --timeout 5m
|
|
|
|
- name: Run api e2e tests
|
|
run: make e2e-api-test
|
|
|
|
- name: Run addons e2e tests
|
|
run: make e2e-addon-test
|
|
|
|
- name: Run e2e tests
|
|
run: make e2e-test
|
|
|
|
- name: Stop kubevela, get profile
|
|
run: make end-e2e
|
|
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: /tmp/e2e-profile.out
|
|
flags: e2etests
|
|
name: codecov-umbrella
|
|
|
|
- name: Clean e2e profile
|
|
run: rm /tmp/e2e-profile.out
|
|
|
|
- name: Cleanup image
|
|
if: ${{ always() }}
|
|
run: make image-cleanup
|