mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-06-13 13:04:09 +00:00
GitHub Actions - use gradle:jdk8 container to provide Java
This commit is contained in:
parent
7c6a82d291
commit
b56e1f6835
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
name: Build
|
name: Build
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
|
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
|
||||||
@ -37,18 +36,13 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
needs: gradleValidation
|
needs: gradleValidation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: gradle:jdk8
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out current repository
|
||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Setup Java 1.8 environment for the next steps
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.8
|
|
||||||
|
|
||||||
# Cache Gradle dependencies
|
# Cache Gradle dependencies
|
||||||
- name: Setup Cache
|
- name: Setup Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -77,6 +71,7 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: gradle:jdk8
|
||||||
outputs:
|
outputs:
|
||||||
name: ${{ steps.properties.outputs.name }}
|
name: ${{ steps.properties.outputs.name }}
|
||||||
version: ${{ steps.properties.outputs.version }}
|
version: ${{ steps.properties.outputs.version }}
|
||||||
@ -88,12 +83,6 @@ jobs:
|
|||||||
- name: Fetch Sources
|
- name: Fetch Sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Setup Java 1.8 environment for the next steps
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.8
|
|
||||||
|
|
||||||
# Cache Gradle dependencies
|
# Cache Gradle dependencies
|
||||||
- name: Setup Cache
|
- name: Setup Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -12,6 +12,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
name: Publish Plugin
|
name: Publish Plugin
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: gradle:jdk8
|
||||||
if: github.repository != 'JetBrains/intellij-platform-plugin-template'
|
if: github.repository != 'JetBrains/intellij-platform-plugin-template'
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -21,12 +22,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
# Setup Java 1.8 environment for the next steps
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.8
|
|
||||||
|
|
||||||
# Publish the plugin to the Marketplace
|
# Publish the plugin to the Marketplace
|
||||||
- name: Publish Plugin
|
- name: Publish Plugin
|
||||||
env:
|
env:
|
||||||
@ -38,6 +33,7 @@ jobs:
|
|||||||
name: Update Changelog
|
name: Update Changelog
|
||||||
needs: release
|
needs: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: gradle:jdk8
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Check out current repository
|
# Check out current repository
|
||||||
@ -46,12 +42,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.release.tag_name }}
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
# Setup Java 1.8 environment for the next steps
|
|
||||||
- name: Setup Java
|
|
||||||
uses: actions/setup-java@v1
|
|
||||||
with:
|
|
||||||
java-version: 1.8
|
|
||||||
|
|
||||||
# Update Unreleased section with the current version
|
# Update Unreleased section with the current version
|
||||||
- name: Patch Changelog
|
- name: Patch Changelog
|
||||||
run: ./gradlew patchChangelog
|
run: ./gradlew patchChangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user