Skip to content

Templates

Templates #936

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: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3
with:
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