Skip to content

Commit

Permalink
reenable cache and update java to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
minh.tran committed Jul 7, 2021
1 parent 3225dfa commit ba20c21
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ jobs:
runs-on: ubuntu-latest
steps:

# Setup Java 1.8 environment for the next steps
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
java-version: 11

# Check out current repository
- name: Fetch Sources
uses: actions/[email protected]

# Cache Gradle dependencies
# - name: Setup Gradle Dependencies Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/caches
# key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Dependencies Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}

# Cache Gradle Wrapper
# - name: Setup Gradle Wrapper Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

# Run detekt, ktlint and tests
- name: Run Linters and Test
Expand All @@ -84,30 +84,30 @@ jobs:
artifact: ${{ steps.properties.outputs.artifact }}
steps:

# Setup Java 1.8 environment for the next steps
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
java-version: 11

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2

# Cache Gradle Dependencies
# - name: Setup Gradle Dependencies Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/caches
# key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Dependencies Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}

# Cache Gradle Wrapper
# - name: Setup Gradle Wrapper Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

# Set environment variables
- name: Export Properties
Expand Down Expand Up @@ -145,30 +145,30 @@ jobs:
runs-on: ubuntu-latest
steps:

# Setup Java 1.8 environment for the next steps
# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
java-version: 11

# Check out current repository
- name: Fetch Sources
uses: actions/[email protected]

# Cache Gradle Dependencies
# - name: Setup Gradle Dependencies Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/caches
# key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Dependencies Cache
uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cachesv1-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}

# Cache Gradle Wrapper
# - name: Setup Gradle Wrapper Cache
# uses: actions/[email protected]
# with:
# path: ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapperv1-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

# Set environment variables
- name: Export Properties
Expand All @@ -180,11 +180,11 @@ jobs:
echo "::set-output name=ideVersions::$IDE_VERSIONS"
echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier"
# Cache Plugin Verifier IDEs
# - name: Setup Plugin Verifier IDEs Cache
# uses: actions/[email protected]
# with:
# path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
# key: ${{ runner.os }}-plugin-verifierv1-${{ steps.properties.outputs.ideVersions }}
- name: Setup Plugin Verifier IDEs Cache
uses: actions/[email protected]
with:
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
key: ${{ runner.os }}-plugin-verifierv1-${{ steps.properties.outputs.ideVersions }}

# Run IntelliJ Plugin Verifier action using GitHub Action
- name: Verify Plugin
Expand Down

0 comments on commit ba20c21

Please sign in to comment.