Skip to content

Commit

Permalink
Merge pull request #30 from Automattic/use_gh_gradle_action
Browse files Browse the repository at this point in the history
Use `gradle-build-action` on CI
  • Loading branch information
wzieba authored Dec 22, 2023
2 parents b43f325 + c89e102 commit 955a461
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/pre-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,15 @@ on:

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache Gradle Caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches/
key: cache-gradle-cache
- name: Cache Gradle Wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper/
key: cache-gradle-wrapper
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run Gradle tasks
run: ./gradlew :measure-builds:preMerge --continue
- name: Stop Gradle
Expand Down

0 comments on commit 955a461

Please sign in to comment.