Skip to content

Commit

Permalink
Create pr-test.yml
Browse files Browse the repository at this point in the history
add gradle/jdk setup

minor update pr-test

switch jdk to 11

switch jdk to 11

checkout before jdk
  • Loading branch information
aormsby committed Aug 4, 2024
1 parent f1789ad commit eeb0905
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Required PR Tests
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
run-pr-tests:
runs-on: ubuntu-latest
steps:
- name: Check out plugin repo
uses: actions/checkout@v4

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 7.5

# Download/cache JDK
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
cache: 'gradle'

- name: Build and run tests
run: ./gradlew build
4 changes: 1 addition & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eeb0905

Please sign in to comment.