Skip to content

Commit

Permalink
Merge pull request #247 from Simperium/add/gradle-wrapper-validation
Browse files Browse the repository at this point in the history
Gradle Wrapper Validation
  • Loading branch information
oguzkocer authored Dec 1, 2022
2 parents 35ad8cc + 15662a7 commit 8eecca0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
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: "Publish Simperium"
plugins:
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"
command: |
./gradlew \
:Simperium:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
:Simperium:publish
plugins: *common_plugins
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

0 comments on commit 8eecca0

Please sign in to comment.