generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.13 KB
/
templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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