This repository was archived by the owner on Jun 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
68 lines (64 loc) · 2.28 KB
/
Copy pathplugin_test.yaml
File metadata and controls
68 lines (64 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Copyright 2022 SkyAPM org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: PluginsTest
on:
pull_request:
push:
branches:
- master
jobs:
Changes:
runs-on: ubuntu-latest
outputs:
e2e_file: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
# e2e_file path: plugin path
gear/test/gear_plugin_test.yaml: gear/**
gin/v2/test/gin_plugin_test.yaml: gin/v2/**
gin/v3/test/gin_plugin_test.yaml: gin/v3/**
go-restful/test/go_restful_plugin_test.yaml: go-restful/**
micro/test/go_micro_plugin_test.yaml: micro/**
resty/test/go_resty_plugin_test.yaml: resty/**
kratos/test/go_kratos_plugin_test.yaml: kratos/**
sql/test/sql_plugin_test.yaml: sql/**
kafkareporter/test/go_kafka_reporter_plugin_test.yaml: kafkareporter/**
dubbo-go/test/dubbo_go_plugin_test.yaml: dubbo-go/**
gorm/test/gorm_plugin_test.yaml: gorm/**
mongo/test/mongo_plugin_test.yaml: mongo/**
PluginsTest:
name: Plugin
needs: Changes
if: ${{ needs.Changes.outputs.e2e_file != '[]' && needs.Changes.outputs.e2e_file != '' }}
runs-on: ubuntu-latest
strategy:
matrix:
e2e_file: ${{ fromJSON(needs.Changes.outputs.e2e_file) }}
steps:
- uses: actions/checkout@v2
- uses: apache/skywalking-infra-e2e@main
with:
e2e-file: ${{ matrix.e2e_file }}
- name: Show Container Logs
if: ${{ failure() }}
run: docker ps -a | grep -v CONTAINER | awk '{print $1}' | xargs -i docker logs {}
- name: Cleanup
if: ${{ failure() }}
run: e2e cleanup -c ${{ matrix.e2e_file }}