2022-06-05 04:18:43 +00:00
|
|
|
name: CI-init-script-check
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-10 22:21:22 +00:00
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release/**'
|
2024-04-12 15:55:46 +00:00
|
|
|
paths-ignore:
|
2024-04-12 04:54:09 +00:00
|
|
|
- 'dist/**'
|
2024-04-10 22:21:22 +00:00
|
|
|
pull_request:
|
2022-06-11 15:19:56 +00:00
|
|
|
paths:
|
2022-06-14 17:36:18 +00:00
|
|
|
- '.github/workflows/ci-init-script-check.yml'
|
2024-01-25 18:24:35 +00:00
|
|
|
- 'sources/src/resources/init-scripts/**'
|
|
|
|
- 'sources/test/init-scripts/**'
|
2022-06-11 15:19:56 +00:00
|
|
|
workflow_dispatch:
|
2022-06-05 04:18:43 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-init-scripts:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-09-04 22:34:02 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-06-05 04:18:43 +00:00
|
|
|
- name: Setup Java
|
2023-12-04 22:49:40 +00:00
|
|
|
uses: actions/setup-java@v4
|
2022-06-05 04:18:43 +00:00
|
|
|
with:
|
|
|
|
distribution: temurin
|
2024-04-25 12:26:54 +00:00
|
|
|
java-version: 11
|
2022-06-05 04:18:43 +00:00
|
|
|
- name: Setup Gradle
|
2024-08-03 22:39:51 +00:00
|
|
|
uses: gradle/actions/setup-gradle@v4 # Use a released version to avoid breakages
|
2024-08-03 22:51:41 +00:00
|
|
|
env:
|
|
|
|
ALLOWED_GRADLE_WRAPPER_CHECKSUMS: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 # Invalid wrapper jar used for testing
|
2022-06-05 04:18:43 +00:00
|
|
|
- name: Run integration tests
|
2024-01-25 18:24:35 +00:00
|
|
|
working-directory: sources/test/init-scripts
|
2022-06-05 04:18:43 +00:00
|
|
|
run: ./gradlew check
|