mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-18 23:38:11 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
125 lines
3.0 KiB
YAML
125 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-22.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: self-hosted
|
|
needs: [ detect-noop ]
|
|
if: needs.detect-noop.outputs.noop != 'true'
|
|
strategy:
|
|
matrix:
|
|
k8s-version: ["v1.26"]
|
|
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
|
|
|
- name: Install tools
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install make gcc jq ca-certificates curl gnupg -y
|
|
sudo snap install kubectl --classic
|
|
sudo snap install helm --classic
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Setup KinD
|
|
run: |
|
|
go install sigs.k8s.io/kind@v0.19.0
|
|
kind delete cluster || true
|
|
kind create cluster
|
|
|
|
- name: Get Ginkgo
|
|
run: |
|
|
go install github.com/onsi/ginkgo/v2/ginkgo@v2.10.0
|
|
go get github.com/onsi/gomega/...
|
|
|
|
- name: Load image
|
|
run: |
|
|
mkdir -p $HOME/tmp/
|
|
TMPDIR=$HOME/tmp/ 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@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
|
|
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
|
|
docker image prune -f --filter "until=24h"
|