-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.35 KB
/
ci.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
name: ci
on: [push]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Set up Java
id: setup-jre
uses: actions/[email protected]
with:
java-version: "11"
architecture: x64
distribution: microsoft
- name: Compile
run: ./gradlew compileJava
- name: Test - Start Compose
run: docker compose up -d
working-directory: tests
- name: Test - RUN
run: ./gradlew test
env:
CONFIG__WAIT: 60
CONFIG__SERVER__URL: http://localhost:8080
working-directory: .
- name: Test - Dump docker logs on failure
if: failure()
uses: jwalton/[email protected]
with:
images: 'squidex/squidex,squidex/resizer'
tail: '100'
- name: Test - Cleanup
if: always()
run: docker compose down
working-directory: tests
- name: Publish to maven
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_PUBLISH_REGISTRY_URL: "https://s01.oss.sonatype.org/content/repositories/releases/"