-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (46 loc) · 1.28 KB
/
pr_validate.yml
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
name: Validate Driver
on:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Start FaunaDB service
uses: addnab/docker-run-action@v3
with:
image: fauna/faunadb:latest
options: |
--mount type=bind,source="${{ github.workspace }}/docker/feature-flags.json",target=/etc/feature-flag-periodic.d/feature-flags.json
-p 8443:8443
-p 8084:8084
run: |
echo "Started Fauna"
- name: Start FaunaDB service alt port
uses: addnab/docker-run-action@v3
with:
image: fauna/faunadb:latest
options: |
-p 7443:8443
-p 7084:8084
run: |
echo "Started Fauna"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: "test:ci"
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Jest Tests ${{ matrix.node }}
path: reports/jest-*.xml
reporter: jest-junit