Skip to content

[Addon] Fix datadog trait with workaround for kubevela issue #6510 (#… #1969

[Addon] Fix datadog trait with workaround for kubevela issue #6510 (#…

[Addon] Fix datadog trait with workaround for kubevela issue #6510 (#… #1969

Workflow file for this run

name: Addon-test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Common versions
GO_VERSION: '1.19'
jobs:
detect-noop:
runs-on: ubuntu-latest
outputs:
noop: ${{ steps.noop.outputs.should_skip }}
steps:
- name: Detect No-op Changes
id: noop
uses: fkirc/skip-duplicate-actions@v3.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
do_not_skip: '["workflow_dispatch", "schedule", "push"]'
concurrent_skipping: false
Addon-test:
name: Addon-test
runs-on: self-hosted
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- 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@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with:
go-version: ${{ env.GO_VERSION }}
- name: Check addon semver
run: |
make check-addon-semver
- name: Setup KinD
run: |
go install sigs.k8s.io/kind@v0.19.0
kind delete cluster --name worker || true
kind create cluster --name worker --image=kindest/node:v1.26.4
kind export kubeconfig --internal --name worker --kubeconfig /tmp/worker.kubeconfig
kind delete cluster || true
kind create cluster --image=kindest/node:v1.26.4
- name: Install vela cli
run: |
curl -fsSl https://kubevela.io/script/install.sh | bash -s v1.9.0-alpha.3
- name: Install vela core
run: |
vela install -v v1.9.0-alpha.2 --yes
kubectl get deploy -n vela-system kubevela-vela-core -oyaml
- name: Vela worker cluster join
run: |
vela cluster join /tmp/worker.kubeconfig --name worker
vela cluster list
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37.0.1
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Addon e2e-test
run: |
go build -o main test/e2e-test/addon-test/main.go
./main ${{ steps.changed-files.outputs.all_changed_files }}