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

Gradle Wrapper Validation #7

Merged
merged 3 commits into from
Dec 1, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
common-params:
&docker-container
docker#v3.8.0:
image: "public.ecr.aws/automattic/android-build-image:v1.1.0"
propagate-environment: true
environment:
# DO NOT MANUALLY SET THESE VALUES!
# They are passed from the Buildkite agent to the Docker container
- "AWS_ACCESS_KEY"
- "AWS_SECRET_KEY"
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/bash-cache#2.11.0

steps:
- label: "Gradle Wrapper Validation"
command: |
validate_gradle_wrapper
plugins: *common_plugins

# Wait for Gradle Wrapper to be validated before running any other jobs
- wait

- label: "Lint & Checkstyle"
key: "lint_and_checkstyle"
plugins:
- *docker-container
plugins: *common_plugins
command: |
cp gradle.properties-example gradle.properties
./gradlew lintRelease checkstyle
Expand All @@ -23,8 +24,7 @@ steps:

- label: "Test"
key: "test"
plugins:
- *docker-container
plugins: *common_plugins
command: |
cp gradle.properties-example gradle.properties
./gradlew test
Expand All @@ -33,8 +33,7 @@ steps:
depends_on:
- "lint_and_checkstyle"
- "test"
plugins:
- *docker-container
plugins: *common_plugins
command: |
cp gradle.properties-example gradle.properties
./gradlew \
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1