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