mirror of
https://github.com/gradle/actions.git
synced 2025-08-19 15:31:28 +08:00
Instead of relying on push triggers in general, we now use pull_request and reserve push triggers for main and release branches. This makes the behaviour more consistent for users contributing from repository forks. However, we no longer have a quick-feedback loop for development.
31 lines
748 B
YAML
31 lines
748 B
YAML
name: CI-init-script-check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'release/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/ci-init-script-check.yml'
|
|
- 'sources/src/resources/init-scripts/**'
|
|
- 'sources/test/init-scripts/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-init-scripts:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 8
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v3 # Use a released version to avoid breakages
|
|
- name: Run integration tests
|
|
working-directory: sources/test/init-scripts
|
|
run: ./gradlew check
|