This is an automated email from the ASF dual-hosted git repository.
xushiyan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hudi-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 3e71bb0 ci: add path ignore files for ci workflow (#93)
3e71bb0 is described below
commit 3e71bb00617db131c24903f9994ae0f6942e0437
Author: Shaurya <[email protected]>
AuthorDate: Fri Jul 26 10:21:31 2024 +0200
ci: add path ignore files for ci workflow (#93)
- Only run tests when a change is made on any of the relevant paths
- Move license and style checks to another CI workflow
Closes #84
---------
Co-authored-by: Shiyan Xu <[email protected]>
---
.github/workflows/ci.yml | 27 ++++++++++++++++++---------
.github/workflows/{pr.yml => compliance.yml} | 12 ++++++++++--
2 files changed, 28 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cddc006..7061dd7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,24 +22,33 @@ on:
branches:
- main
- release/**
+ paths-ignore:
+ - '**.md'
+ - '.github/ISSUE_TEMPLATE/**'
+ - '.github/PULL_REQUEST_TEMPLATE.md'
+ - '.asf.yaml'
+ - '.licenserc.yaml'
+ - '.commitlintrc.yaml'
+ - 'LICENSE'
+ - 'NOTICE'
pull_request:
branches:
- main
+ paths-ignore:
+ - '**.md'
+ - '.github/ISSUE_TEMPLATE/**'
+ - '.github/PULL_REQUEST_TEMPLATE.md'
+ - '.asf.yaml'
+ - '.licenserc.yaml'
+ - '.commitlintrc.yaml'
+ - 'LICENSE'
+ - 'NOTICE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
- check:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Check license header
- uses: apache/skywalking-eyes/[email protected]
- - name: Check code style
- run: cd python && make check-rust
-
rust-tests:
strategy:
fail-fast: false
diff --git a/.github/workflows/pr.yml b/.github/workflows/compliance.yml
similarity index 82%
rename from .github/workflows/pr.yml
rename to .github/workflows/compliance.yml
index ef127ec..6f0e4db 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/compliance.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: PR
+name: Compliance
on:
pull_request_target:
@@ -28,7 +28,7 @@ permissions:
pull-requests: write
jobs:
- compliance:
+ check-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -41,3 +41,11 @@ jobs:
echo ${{ github.event.pull_request.title }} | npx commitlint
- name: Labeling
uses: actions/labeler@v5
+ check-changes:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Check license header
+ uses: apache/skywalking-eyes/[email protected]
+ - name: Check code style
+ run: cd python && make check-rust