-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.42 KB
/
e2e-tests.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Postgres E2E tests
on:
merge_group:
push:
pull_request:
jobs:
run_postgres_e2es:
name: Run Postgres E2Es
runs-on: ubuntu-latest
steps:
- name: Install `just`
uses: extractions/setup-just@v1
- name: Log in to GitHub Container Registry 📦
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check out ndc-postgres
uses: actions/checkout@v3
with:
path: ndc-postgres
- name: Build ndc-postgres
run: cargo build
working-directory: ndc-postgres
- name: Check out v3-engine
uses: actions/checkout@v3
with:
repository: hasura/v3-engine
path: v3-engine
token: ${{ secrets.E2E_WORKFLOW_PAT }}
- name: Build v3-engine
run: cargo build
working-directory: v3-engine
- name: Check out v3-e2e-testing
uses: actions/checkout@v3
with:
repository: hasura/v3-e2e-testing
path: v3-e2e-testing
token: ${{ secrets.E2E_WORKFLOW_PAT }}
- name: Run the tests
run: just test-postgres
working-directory: v3-e2e-testing
- name: Upload logs
if: always()
uses: actions/upload-artifact@v3
with:
name: logs
path: v3-e2e-testing/crates/postgres/static/logs