Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Separate Gradle Wrapper validation into its own workflow #5246

Merged
merged 1 commit into from May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/cibuild.yml
Expand Up @@ -4,19 +4,17 @@ on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/**/*rebuild*'
- '.github/*.yml'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- '.github/**/*ci*'
pull_request:
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/**/*rebuild*'
- '.github/*.yml'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- '.github/**/*ci*'

env:
LC_ALL: en_US.UTF-8
Expand Down Expand Up @@ -62,8 +60,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: ${{ matrix.fetch-depth }}
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yml
Expand Up @@ -44,8 +44,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/rebuild.yml
Expand Up @@ -4,19 +4,17 @@ on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/**/*ci*'
- '.github/*.yml'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- '.github/**/*rebuild*'
pull_request:
paths-ignore:
- 'docs/**'
- '.github/**/*docs*'
- '.github/**/*codeql*'
- '.github/**/*ci*'
- '.github/*.yml'
paths:
- '**'
- '!docs/**'
- '!.github/**'
- '.github/**/*rebuild*'

env:
LC_ALL: en_US.UTF-8
Expand Down Expand Up @@ -50,8 +48,6 @@ jobs:
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/wrapper.yml
@@ -0,0 +1,35 @@
name: 'Wrapper'

on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- 'gradle/wrapper/**'
- 'gradlew*'
- '.github/**/*wrapper*'
pull_request:
paths:
- 'gradle/wrapper/**'
- 'gradlew*'
- '.github/**/*wrapper*'

env:
LC_ALL: en_US.UTF-8

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
validate:
name: Validate Gradle Wrapper
runs-on: 'ubuntu-latest'
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1