Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

ci: add CI change filter #30

Merged
merged 5 commits into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/workflows/plugin_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,34 @@ on:
- master

jobs:
Changes:
runs-on: ubuntu-latest
outputs:
e2e_file: ${{ steps.filter.outputs.changes }}
steps:
- 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/**

PluginsTest:
name: Plugin
needs: Changes
runs-on: ubuntu-latest
strategy:
matrix:
case:
- { name: 'Gear', e2e_file: 'gear/test/gear_plugin_test.yaml' }
- { name: 'Gin v2', e2e_file: 'gin/v2/test/gin_plugin_test.yaml' }
- { name: 'Gin v3', e2e_file: 'gin/v3/test/gin_plugin_test.yaml' }
- { name: 'Go Restful', e2e_file: 'go-restful/test/go_restful_plugin_test.yaml' }
- { name: 'Go Micro', e2e_file: 'micro/test/go_micro_plugin_test.yaml' }
- { name: 'Go Resty', e2e_file: 'resty/test/go_resty_plugin_test.yaml' }
- { name: 'Go Kratos', e2e_file: 'kratos/test/go_kratos_plugin_test.yaml'}
e2e_file: ${{ fromJSON(needs.Changes.outputs.e2e_file) }}
steps:
- uses: actions/checkout@v2
- uses: apache/skywalking-infra-e2e@main
with:
e2e-file: ${{ matrix.case.e2e_file }}
e2e-file: ${{ matrix.e2e_file }}