Skip to content

Commit

Permalink
Merge pull request #275 from badsyntax/upgrade-gradle-actions
Browse files Browse the repository at this point in the history
Use new Gradle GitHub Action
  • Loading branch information
badsyntax committed Jan 11, 2022
2 parents b57ada8 + de14de5 commit 5027e80
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,29 @@ jobs:
- name: Lint extension
run: npm run lint
- name: Prepare Gradle
uses: eskatos/gradle-command-action@v1
uses: gradle/gradle-build-action@v2
with:
arguments: build -x spotlessCheck
build-root-directory: test-fixtures/gradle-project
gradle-executable: test-fixtures/gradle-project/gradlew
distributions-cache-enabled: false
- name: Prepare Spotless
uses: eskatos/gradle-command-action@v1
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessDiagnose
build-root-directory: test-fixtures/gradle-project
gradle-executable: test-fixtures/gradle-project/gradlew
distributions-cache-enabled: false
- name: Prepare Gradle (multi-project)
uses: eskatos/gradle-command-action@v1
uses: gradle/gradle-build-action@v2
with:
arguments: build -x spotlessCheck
build-root-directory: test-fixtures/gradle-multi-project
gradle-executable: test-fixtures/gradle-multi-project/gradlew
distributions-cache-enabled: false
- name: Prepare Spotless (multi-project)
uses: eskatos/gradle-command-action@v1
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessDiagnose
build-root-directory: test-fixtures/gradle-multi-project
gradle-executable: test-fixtures/gradle-multi-project/gradlew
distributions-cache-enabled: false
- name: Install test-fixtures NPM packages
run: |
npm ci --prefix test-fixtures/gradle-project
Expand All @@ -73,20 +69,6 @@ jobs:
npm run test
env:
DISPLAY: ':99.0'
- name: Stop Gradle daemon
uses: eskatos/gradle-command-action@v1
with:
arguments: --stop
build-root-directory: test-fixtures/gradle-project
gradle-executable: test-fixtures/gradle-project/gradlew
distributions-cache-enabled: false
- name: Stop Gradle daemon (multi-project)
uses: eskatos/gradle-command-action@v1
with:
arguments: --stop
build-root-directory: test-fixtures/gradle-multi-project
gradle-executable: test-fixtures/gradle-multi-project/gradlew
distributions-cache-enabled: false

publish:
name: Publish extension
Expand Down

0 comments on commit 5027e80

Please sign in to comment.