-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 791 Bytes
/
test.yml
File metadata and controls
34 lines (30 loc) · 791 Bytes
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
name: Run Tests
on:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
services:
fauna:
image: fauna/faunadb
ports:
- 8443:8443
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: corretto
- name: Install fauna-shell
run:
npm install -g fauna-shell
- name: Setup Test Database
run: ./scripts/setup.sh
- name: Test sample app
run: |
./gradlew build
FAUNA_ENDPOINT=http://localhost:8443 FAUNA_SECRET=`cat .fauna_key` ./gradlew bootRun > bootrun.log 2>&1 &
./scripts/validate.sh
cat bootrun.log