add build and run scripts #7
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
# This workflow triggers a complete test suite run and coverage check | |
# when a push is made to a development branch. | |
name: Dev Build Workflow | |
on: | |
push: | |
branches: | |
- "**" | |
- "!main" | |
jobs: | |
dev-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Source code checkout | |
uses: actions/checkout@v3 | |
- name: Cache gradle dependencies | |
uses: actions/cache@v2.1.6 | |
with: | |
path: | | |
~/.gradle/caches | |
~//gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
- name: Run test suite and coverage | |
run: chmod +x ./gradlew && ./gradlew test |