mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions: Use Gradle cache provided with actions/setup-java
This commit is contained in:
parent
e2354624f7
commit
1f89eb272b
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
@ -44,30 +44,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Check out current repository
|
||||||
|
- name: Fetch Sources
|
||||||
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Setup Java 11 environment for the next steps
|
# Setup Java 11 environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
# Check out current repository
|
|
||||||
- name: Fetch Sources
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
|
|
||||||
# Cache Gradle dependencies
|
|
||||||
- name: Setup Gradle Dependencies Cache
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/caches
|
|
||||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
|
||||||
|
|
||||||
# Cache Gradle Wrapper
|
|
||||||
- name: Setup Gradle Wrapper Cache
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
- name: Export Properties
|
- name: Export Properties
|
||||||
@ -110,30 +97,17 @@ jobs:
|
|||||||
changelog: ${{ steps.properties.outputs.changelog }}
|
changelog: ${{ steps.properties.outputs.changelog }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Check out current repository
|
||||||
|
- name: Fetch Sources
|
||||||
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Setup Java 11 environment for the next steps
|
# Setup Java 11 environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
# Check out current repository
|
|
||||||
- name: Fetch Sources
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
|
|
||||||
# Cache Gradle Dependencies
|
|
||||||
- name: Setup Gradle Dependencies Cache
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/caches
|
|
||||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
|
||||||
|
|
||||||
# Cache Gradle Wrapper
|
|
||||||
- name: Setup Gradle Wrapper Cache
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
- name: Export Properties
|
- name: Export Properties
|
||||||
|
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -14,32 +14,19 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Setup Java 11 environment for the next steps
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: zulu
|
|
||||||
java-version: 11
|
|
||||||
|
|
||||||
# Check out current repository
|
# Check out current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
# Cache Gradle Dependencies
|
# Setup Java 11 environment for the next steps
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Java
|
||||||
uses: actions/cache@v2.1.6
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
distribution: zulu
|
||||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
# Cache Gradle Wrapper
|
|
||||||
- name: Setup Gradle Wrapper Cache
|
|
||||||
uses: actions/cache@v2.1.6
|
|
||||||
with:
|
|
||||||
path: ~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
|
||||||
|
|
||||||
# Update Unreleased section with the current release note
|
# Update Unreleased section with the current release note
|
||||||
- name: Patch Changelog
|
- name: Patch Changelog
|
||||||
|
9
.github/workflows/run-ui-tests.yml
vendored
9
.github/workflows/run-ui-tests.yml
vendored
@ -31,16 +31,17 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Check out current repository
|
||||||
|
- name: Fetch Sources
|
||||||
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Setup Java 11 environment for the next steps
|
# Setup Java 11 environment for the next steps
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
# Check out current repository
|
|
||||||
- name: Fetch Sources
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
|
|
||||||
# Run IDEA prepared for UI testing
|
# Run IDEA prepared for UI testing
|
||||||
- name: Run IDE
|
- name: Run IDE
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- GitHub Actions: Use Java 11
|
- GitHub Actions: Use Java 11
|
||||||
- GitHub Actions: update Build and Release flows
|
- GitHub Actions: Update Build and Release flows
|
||||||
|
- GitHub Actions: Use Gradle cache provided with `actions/setup-java`
|
||||||
- Update `pluginVerifierIdeVersions` to `2020.3.4, 2021.1.3, 2021.2`
|
- Update `pluginVerifierIdeVersions` to `2020.3.4, 2021.1.3, 2021.2`
|
||||||
- Change since/until build to `203-212.*`
|
- Change since/until build to `203-212.*`
|
||||||
- Upgrade Gradle Wrapper to `7.2`
|
- Upgrade Gradle Wrapper to `7.2`
|
||||||
|
Loading…
Reference in New Issue
Block a user