Skip to content

Commit

Permalink
build: Update actions workflows where missed
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed May 2, 2021
1 parent 0ca3e05 commit 9baa5c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
path: |
~/.gradle/caches
~/.gradle/wrapper
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/check-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew checkstyleMain
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11

- name: Initialize CodeQL
Expand Down

0 comments on commit 9baa5c4

Please sign in to comment.