Skip to content

Commit

Permalink
pouet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysoun committed Feb 6, 2024
1 parent 5edaa01 commit a8d1cc0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/reusable_prepare_server_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Prepare server for build

on: workflow_call
runs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Define Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
18 changes: 2 additions & 16 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Define Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Prepare build server
run: 4sh/datamaintain-monitoring/.github/workflows/reusable_preapre_server_build.yaml@v1
- name: Build
run: ./gradlew build --build-cache --console plain

Expand Down

0 comments on commit a8d1cc0

Please sign in to comment.