You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
name: 'CI Builds'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
check-gradle:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: 'Set up JDK'
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 8
|
|
distribution: temurin
|
|
- name: 'Init Gradle Build Action'
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
# cache options only count for the first invocation
|
|
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
|
|
arguments: --version
|
|
- name: 'Check Spock'
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
arguments: check
|
|
check-maven:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Cache local Maven repository
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: test-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
test-${{ runner.os }}-maven-
|
|
- name: 'Set up JDK'
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 8
|
|
distribution: temurin
|
|
- name: 'Check Spock'
|
|
run: |
|
|
./mvnw -V -B verify
|