-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1020 Bytes
/
persistence-ci.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
name: continuous integration on jactor-persistence
on:
push:
branches:
- '**'
env:
IMAGE: ghcr.io/${{ github.repository }}:latest
jobs:
env:
runs-on: ubuntu-latest
name: debug environment
steps:
- run: cat $GITHUB_EVENT_PATH
- run: env
build:
runs-on: ubuntu-latest
name: Build jactor-persistence
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 21
cache: gradle
- run: ./gradlew :persistence:build --scan -x test
- name: Verify dependencies
run: |
COUNT=$(./gradlew -q :persistence:dependencies | grep -c SNAPSHOT || true)
echo "Found $COUNT SNAPSHOT dependencies"
if [ "$COUNT" -gt 0 ]
then
>&2 echo ::error No SNAPSHOT dependencies allowed
./gradlew -q :persistence:dependencies
exit 1;
fi
- run: ./gradlew :persistence:test --tests "*"