You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by im...@apache.org on 2022/10/11 04:16:47 UTC
[shenyu] branch master updated: [type:build] skip ci and it when only shenyu-e2e changed (#4061)
This is an automated email from the ASF dual-hosted git repository.
impactcn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 55bbc234c [type:build] skip ci and it when only shenyu-e2e changed (#4061)
55bbc234c is described below
commit 55bbc234cfa337c877c97a54d562857395c1c190
Author: Luke.Z <10...@users.noreply.github.com>
AuthorDate: Tue Oct 11 12:16:40 2022 +0800
[type:build] skip ci and it when only shenyu-e2e changed (#4061)
* skip ci and it when only shenyu-e2e changed
* update
---
.github/filters.yml | 10 ++++++++++
.github/workflows/e2e.yaml | 30 +++++++++++++++++++++---------
2 files changed, 31 insertions(+), 9 deletions(-)
diff --git a/.github/filters.yml b/.github/filters.yml
index a280da3cd..4b69840bd 100644
--- a/.github/filters.yml
+++ b/.github/filters.yml
@@ -5,7 +5,17 @@ changed:
.asf.yaml,.gitignore,.licenserc.yaml,\
LICENSE,NOTICE,\
Makefile,\
+ shenyu-e2e/**, \
.github/(ISSUE_TEMPLATE/**|PULL_REQUEST_TEMPLATE)\
}"
pom:
- "**/pom.xml"
+e2e:
+ - "!**/{\
+ *.md,*.txt,\
+ resources/static/**,\
+ .asf.yaml,.gitignore,.licenserc.yaml,\
+ LICENSE,NOTICE,\
+ Makefile,\
+ .github/(ISSUE_TEMPLATE/**|PULL_REQUEST_TEMPLATE)\
+ }"
diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
index ef4ed85bf..54f162435 100644
--- a/.github/workflows/e2e.yaml
+++ b/.github/workflows/e2e.yaml
@@ -17,23 +17,32 @@ name: e2e
on:
pull_request:
- branches:
- - master
- paths-ignore:
- - '**.md'
- - '**/resources/static/'
push:
branches:
- master
- paths-ignore:
- - '**.md'
- - '**/resources/static/'
env:
TAG: ${{ github.sha }}
jobs:
+ changes:
+ runs-on: ubuntu-latest
+ outputs:
+ e2e: ${{ steps.filter.outputs.e2e }}
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+
+ - uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: '.github/filters.yml'
+ list-files: json
+
build-docker-images:
+ needs: changes
+ if: ${{ needs.changes.outputs.e2e == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -96,7 +105,10 @@ jobs:
e2e:
runs-on: ubuntu-latest
- needs: [ "build-docker-images" ]
+ needs:
+ - changes
+ - build-docker-images
+ if: ${{ needs.changes.outputs.e2e == 'true' }}
strategy:
matrix:
storage: [ "h2", "mysql", "postgres" ]