mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 21:07:04 +05:30
github: checkout repo before setting up Java
This commit is contained in:
parent
56914d20bb
commit
299639d354
1 changed files with 9 additions and 9 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -13,6 +13,9 @@ jobs:
|
|||
run-unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2.4.0
|
||||
with:
|
||||
|
@ -20,9 +23,6 @@ jobs:
|
|||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
|
@ -41,6 +41,9 @@ jobs:
|
|||
stylecheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2.4.0
|
||||
with:
|
||||
|
@ -48,9 +51,6 @@ jobs:
|
|||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
|
@ -64,6 +64,9 @@ jobs:
|
|||
if: "github.event_name == 'push'"
|
||||
needs: [ "run-unit-tests", "stylecheck" ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2.4.0
|
||||
with:
|
||||
|
@ -71,9 +74,6 @@ jobs:
|
|||
java-version: '17'
|
||||
cache: 'gradle'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2.4.0
|
||||
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue