| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: "CI" |
| on: |
| push: |
| branches: |
| - asf |
| - main |
| pull_request: |
| workflow_dispatch: |
| # queue jobs and only allow 1 run per branch due to the likelihood of hitting GitHub resource limits |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.ref }} |
| cancel-in-progress: false |
| jobs: |
| test: |
| if: ${{ !contains(github.event.head_commit.message, '[skip tests]') }} |
| name: 'Run Tests' |
| strategy: |
| fail-fast: false |
| matrix: |
| java: [ 17 ] |
| os: [ ubuntu-latest ] |
| runs-on: ${{ matrix.os }} |
| steps: |
| - name: "Output Agent IP" # in the event RAO blocks this agent, this can be used to debug it |
| run: curl -s https://api.ipify.org |
| - name: "📥 Checkout repository" |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| - name: "☕️ Setup JDK" |
| uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0 |
| with: |
| distribution: liberica |
| java-version: ${{ matrix.java }} |
| - name: "🐘 Setup Gradle" |
| uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0 |
| with: |
| cache-provider: basic # 'basic' uses the MIT-licensed, open-source cache provider; the default 'enhanced' provider (v6+) is proprietary (Gradle commercial Terms of Use) |
| develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }} |
| - name: "🔨 Test project" |
| working-directory: 'tests' |
| run: > |
| ./gradlew test |
| --continue --stacktrace |
| --rerun-tasks |