Skip to content

PI-2624 Enable Gradle configuration cache #1193

PI-2624 Enable Gradle configuration cache

PI-2624 Enable Gradle configuration cache #1193

Workflow file for this run

name: Templates
# Check that templates build correctly and tests pass
on:
push:
paths:
- templates/projects/**
- .github/workflows/templates.yml
- .github/actions/render-project-template/action.yml
schedule:
- cron: "30 5 * * MON-FRI" # Every weekday at 05:30 UTC
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project_template:
- api-client-and-server
- api-server
- message-listener
- message-listener-with-api-client
- message-listener-with-api-client-and-server
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-gradle
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache-read-only: true
- name: Render project template
uses: ./.github/actions/render-project-template
with:
project_name: test-project
project_template: ${{ matrix.project_template }}
- name: Compile and test
run: ./gradlew test-project:check