Import clearinghouse #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'lib/**' | |
- 'services/**' | |
- 'buildSrc/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'lib/**' | |
- 'services/**' | |
- 'buildSrc/**' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Cache gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/cache | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build with Gradle | |
run: ./gradlew assemble | |
- name: Run tests | |
run: ./gradlew test |