FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Skip CI tests for non-code changes using dorny/paths-filter by xerial · Pull Request #901 · msgpack/msgpack-java · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .yml  (1) All 1 file type selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
43 changes: 30 additions & 13 deletions .github/workflows/CI.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,42 @@ name: CI

on:
pull_request:
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.github/workflows/**.yml'
- 'project/build.properties'
push:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.github/workflows/**.yml'
- 'project/build.properties'
workflow_dispatch:
workflow_dispatch:

jobs:
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.changes.outputs.code }}
docs: ${{ steps.changes.outputs.docs }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
code:
- '**.scala'
- '**.java'
- '**.sbt'
- '.github/workflows/**.yml'
- 'project/build.properties'
- 'msgpack-core/**'
- 'msgpack-jackson/**'
docs:
- '**.md'
- '**.txt'
- 'LICENSE'

code_format:
name: Code Format
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.code == 'true' }}
steps:
- uses: actions/checkout@v4
- name: jcheckstyle
Expand All @@ -31,6 +46,8 @@ jobs:
test:
name: Test JDK${{ matrix.java }}
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.code == 'true' }}
strategy:
matrix:
java: ['8', '11', '17', '21', '24']
Expand Down
Loading

Back | FazBrowse Home | New Git URL