-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (56 loc) · 1.47 KB
/
build.yaml
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
59
60
61
62
63
name: Zulip Java Client CI
on:
push:
branches:
- main
paths-ignore:
- '**.adoc'
- 'LICENSE.txt'
pull_request:
branches:
- '*'
paths-ignore:
- '**.adoc'
- 'LICENSE.txt'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '11', '17', '21' ]
steps:
- name: Checkout Zulip Java Client
uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Setup Zulip
run: |
cd src/test/resources/docker/
docker compose up -d
while [ "$(curl -k -L -s -o /dev/null -w "%{http_code}" http://localhost/login)" != "200" ]
do
sleep 5
done
./populatedb.sh
while [ "$(curl -k -L -s -o /dev/null -w "%{http_code}" http://localhost/login)" != "200" ]
do
sleep 5
done
./createzuliprc.sh
- name: Build JDK ${{ matrix.java }}
run: |
./mvnw clean verify -ntp -B