2023-11-30 11:04:30 +00:00
|
|
|
name: PullRequest Merge Check
|
|
|
|
|
2023-11-30 09:49:29 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "develop"
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
checks: write
|
|
|
|
id-token: write
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
setup:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Setup
|
2023-11-30 09:49:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
2023-11-30 11:01:25 +00:00
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
2023-11-30 11:01:25 +00:00
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
2023-12-03 08:14:22 +00:00
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/*.kt') }}-${{ github.sha }}
|
2023-11-30 09:49:29 +00:00
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-11-30 09:49:29 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
- name: Build
|
2024-05-06 14:03:41 +00:00
|
|
|
uses: gradle/gradle-build-action@v3.3.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:testClasses
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
unit-test:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Unit Test
|
2023-11-30 09:49:29 +00:00
|
|
|
needs: [ setup ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
2023-11-30 11:01:25 +00:00
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
2023-11-30 11:01:25 +00:00
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('src') }}-${{ github.sha }}
|
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-11-30 09:49:29 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Unit Test
|
2024-05-06 14:03:41 +00:00
|
|
|
uses: gradle/gradle-build-action@v3.3.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:test
|
2023-11-30 09:49:29 +00:00
|
|
|
|
2023-11-30 10:51:57 +00:00
|
|
|
- name: Save Test Report
|
2023-12-03 07:22:06 +00:00
|
|
|
if: always()
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/save@v4
|
2023-11-30 10:51:57 +00:00
|
|
|
with:
|
|
|
|
path: build/test-results
|
|
|
|
key: unit-test-report-${{ github.sha }}
|
|
|
|
|
2023-11-30 09:49:29 +00:00
|
|
|
integration-test:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Integration Test
|
2023-11-30 09:49:29 +00:00
|
|
|
needs: [ setup ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
2023-11-30 11:01:25 +00:00
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
2023-11-30 11:01:25 +00:00
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('src') }}-${{ github.sha }}
|
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-11-30 09:49:29 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
2023-11-30 10:22:00 +00:00
|
|
|
- name: MongoDB in GitHub Actions
|
|
|
|
uses: supercharge/mongodb-github-action@1.10.0
|
|
|
|
with:
|
|
|
|
mongodb-version: latest
|
|
|
|
|
2023-11-30 09:49:29 +00:00
|
|
|
- name: Unit Test
|
2024-05-06 14:03:41 +00:00
|
|
|
uses: gradle/gradle-build-action@v3.3.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:integrationTest
|
2023-11-30 09:49:29 +00:00
|
|
|
|
2023-11-30 10:51:57 +00:00
|
|
|
- name: Save Test Report
|
2023-12-03 07:22:06 +00:00
|
|
|
if: always()
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/save@v4
|
2023-11-30 10:51:57 +00:00
|
|
|
with:
|
|
|
|
path: build/test-results
|
|
|
|
key: integration-test-report-${{ github.sha }}
|
|
|
|
|
2023-11-30 09:49:29 +00:00
|
|
|
coverage:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Coverage
|
2023-11-30 09:49:29 +00:00
|
|
|
needs: [ setup ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
2023-11-30 11:01:25 +00:00
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
2023-11-30 11:01:25 +00:00
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('src') }}-${{ github.sha }}
|
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-11-30 09:49:29 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Run Kover
|
2024-05-06 14:03:41 +00:00
|
|
|
uses: gradle/gradle-build-action@v3.3.2
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:koverXmlReport -x :hideout-core:integrationTest -x :hideout-core:e2eTest --rerun-tasks
|
2023-11-30 09:49:29 +00:00
|
|
|
|
|
|
|
- name: Add coverage report to PR
|
|
|
|
if: always()
|
|
|
|
id: kover
|
2023-12-14 07:20:10 +00:00
|
|
|
uses: madrapps/jacoco-report@v1.6.1
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2023-12-14 07:24:50 +00:00
|
|
|
paths: |
|
2024-05-18 07:18:54 +00:00
|
|
|
${{ github.workspace }}/hideout-core/build/reports/kover/report.xml
|
2023-11-30 09:49:29 +00:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
title: Code Coverage
|
|
|
|
update-comment: true
|
|
|
|
min-coverage-overall: 80
|
|
|
|
min-coverage-changed-files: 80
|
|
|
|
coverage-counter-type: LINE
|
|
|
|
|
|
|
|
report-tests:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Report Tests
|
2023-11-30 09:49:29 +00:00
|
|
|
if: success() || failure()
|
2023-12-03 07:00:05 +00:00
|
|
|
needs: [ unit-test,integration-test,e2e-test ]
|
2023-11-30 09:49:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-30 10:51:57 +00:00
|
|
|
- name: Restore Test Report
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/restore@v4
|
2023-11-30 10:28:03 +00:00
|
|
|
with:
|
2023-11-30 10:51:57 +00:00
|
|
|
path: build/test-results
|
|
|
|
key: unit-test-report-${{ github.sha }}
|
|
|
|
|
|
|
|
- name: Restore Test Report
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/restore@v4
|
2023-11-30 10:51:57 +00:00
|
|
|
with:
|
|
|
|
path: build/test-results
|
|
|
|
key: integration-test-report-${{ github.sha }}
|
|
|
|
|
2023-12-03 07:14:17 +00:00
|
|
|
- name: Restore Test Report
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/restore@v4
|
2023-12-03 07:14:17 +00:00
|
|
|
with:
|
|
|
|
path: build/test-results
|
|
|
|
key: e2e-test-report-${{ github.sha }}
|
|
|
|
|
2023-11-30 09:49:29 +00:00
|
|
|
- name: JUnit Test Report
|
2024-05-06 14:03:47 +00:00
|
|
|
uses: mikepenz/action-junit-report@v4
|
2023-11-30 09:49:29 +00:00
|
|
|
with:
|
2023-11-30 10:35:39 +00:00
|
|
|
report_paths: '**/TEST-*.xml'
|
|
|
|
|
|
|
|
lint:
|
2023-11-30 11:04:30 +00:00
|
|
|
name: Lint
|
2023-11-30 10:35:39 +00:00
|
|
|
needs: [ setup ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-30 10:35:39 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
2023-11-30 11:01:25 +00:00
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
2023-11-30 10:35:39 +00:00
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
2023-11-30 11:01:25 +00:00
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
2023-11-30 10:35:39 +00:00
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('src') }}-${{ github.sha }}
|
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-11-30 10:35:39 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Build with Gradle
|
2024-05-06 08:08:10 +00:00
|
|
|
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff
|
2023-11-30 10:35:39 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:detektMain
|
2023-11-30 10:35:39 +00:00
|
|
|
|
|
|
|
- name: "reviewdog-suggester: Suggest any code changes based on diff with reviewdog"
|
|
|
|
if: ${{ always() }}
|
|
|
|
uses: reviewdog/action-suggester@v1
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-12-03 07:00:05 +00:00
|
|
|
|
|
|
|
e2e-test:
|
|
|
|
name: E2E Test
|
|
|
|
needs: [ setup ]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-07 13:23:54 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-12-03 07:00:05 +00:00
|
|
|
|
|
|
|
- name: Gradle Wrapper Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
|
|
|
path: ~/.gradle/wrapper
|
|
|
|
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
|
|
|
|
|
|
|
|
- name: Dependencies Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/cache/jars-*
|
|
|
|
~/.gradle/caches/transforms-*
|
|
|
|
~/.gradle/caches/modules-*
|
|
|
|
key: gradle-dependencies-${{ hashFiles('**/*.gradle.kts') }}
|
|
|
|
restore-keys: gradle-dependencies-
|
|
|
|
|
|
|
|
- name: Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches/build-cache-*
|
|
|
|
~/.gradle/caches/[0-9]*.*
|
|
|
|
.gradle
|
|
|
|
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ github.sha }}
|
|
|
|
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-
|
|
|
|
|
|
|
|
- name: Build Cache
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache@v4.0.2
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
key: gradle-build-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('src') }}-${{ github.sha }}
|
|
|
|
|
2024-02-04 07:19:33 +00:00
|
|
|
- name: Set up JDK 21
|
2024-05-07 13:26:23 +00:00
|
|
|
uses: actions/setup-java@v4
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
2024-02-04 07:19:33 +00:00
|
|
|
java-version: '21'
|
2023-12-03 07:00:05 +00:00
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: MongoDB in GitHub Actions
|
|
|
|
uses: supercharge/mongodb-github-action@1.10.0
|
|
|
|
with:
|
|
|
|
mongodb-version: latest
|
|
|
|
|
2023-12-03 08:21:23 +00:00
|
|
|
- name: setup-chrome
|
2023-12-03 08:26:10 +00:00
|
|
|
id: setup-chrome
|
2024-05-16 07:44:48 +00:00
|
|
|
uses: browser-actions/setup-chrome@v1.6.2
|
2023-12-03 07:39:52 +00:00
|
|
|
|
2023-12-03 08:14:22 +00:00
|
|
|
- name: Add Path
|
|
|
|
run: echo ${{ steps.setup-chrome.outputs.chrome-path }} >> $GITHUB_PATH
|
|
|
|
|
2023-12-03 07:00:05 +00:00
|
|
|
- name: E2E Test
|
2024-05-06 14:03:41 +00:00
|
|
|
uses: gradle/gradle-build-action@v3.3.2
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
2024-05-11 15:19:09 +00:00
|
|
|
arguments: :hideout-core:e2eTest
|
2023-12-03 07:00:05 +00:00
|
|
|
|
2023-12-03 08:14:22 +00:00
|
|
|
|
2023-12-03 07:00:05 +00:00
|
|
|
- name: Save Test Report
|
2023-12-03 07:22:06 +00:00
|
|
|
if: always()
|
2024-05-07 13:21:21 +00:00
|
|
|
uses: actions/cache/save@v4
|
2023-12-03 07:00:05 +00:00
|
|
|
with:
|
|
|
|
path: build/test-results
|
|
|
|
key: e2e-test-report-${{ github.sha }}
|