Skip to content

add build and run scripts #7

add build and run scripts

add build and run scripts #7

Workflow file for this run

# 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