-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.58 KB
/
Copy pathtest-main.yml
File metadata and controls
56 lines (49 loc) · 1.58 KB
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
name: Test against SDK main
# Exercises the example app against the unreleased Castle Java SDK (main
# branch). castle-java 3.0.0 is consumed as a Maven artifact, so we clone,
# build and install the SDK main branch into the local repository and run
# the example against it.
#
# This is the permanent test/sdk-main branch: every push to it runs the suite
# against the latest main. Nightly/manual runs require this file to also live
# on the default branch (GitHub only honours schedule/workflow_dispatch from
# the default branch).
on:
push:
branches: [test/sdk-main]
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out example
uses: actions/checkout@v5
with:
path: example
- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: 20
cache: npm
cache-dependency-path: example/package-lock.json
- run: npm ci
working-directory: example
- name: Check out castle-java SDK
uses: actions/checkout@v5
with:
repository: castle/castle-java
ref: main
path: castle-java
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: Install castle-java from main
run: mvn -B -ntp -f castle-java/pom.xml install -DskipTests -Dmaven.javadoc.skip=true
- name: Build and test example
working-directory: example
run: mvn -B -ntp verify