-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.21 KB
/
publishing.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Publishing
on:
push:
branches:
- develop
- release/*
- hotfix/*
tags:
- v*.*.*
env:
REGISTRY: ghcr.io
jobs:
formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: gradle
- name: Run Spotless
run: ./gradlew --no-daemon spotlessCheck
test:
name: Test
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: gradle
- name: Build emails
run: make emails
- name: Run tests
run: ./gradlew --no-daemon test
env:
MP_JWT_VERIFY_PUBLICKEY: ${{ vars.MP_JWT_VERIFY_PUBLICKEY }}
SMALLRYE_JWT_SIGN_KEY: ${{ secrets.SMALLRYE_JWT_SIGN_KEY }}
APP_URL: https://api.fyreplace.example.org
APP_FRONT_URL: https://fyreplace.example.org
APP_WEBSITE_URL: https://www.fyreplace.example.org