-
Notifications
You must be signed in to change notification settings - Fork 10
84 lines (84 loc) · 2.66 KB
/
tests.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: ci
on: [push]
jobs:
core-tests:
runs-on: ubuntu-latest
env:
GOOGLE_CREDENTIALS: ${{ secrets.GCP_DEV_CREDENTIALS }}
steps:
- uses: actions/checkout@v2
- name: "Install build deps"
uses: ./.github/actions/build-deps
with:
sentry-auth-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
gcp-credentials-json: ${{ secrets.GCP_DEV_CREDENTIALS }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: "Install Dependencies"
run: |
go mod download
go install gotest.tools/gotestsum@v1.8.2
- name: Test
run: |
mkdir -p /tmp/test-reports
gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- -tags debug_tools -run TestMain/test_GraphQL ./graphql
syncing-tests:
runs-on: ubuntu-latest
env:
GOOGLE_CREDENTIALS: ${{ secrets.GCP_DEV_CREDENTIALS }}
steps:
- uses: actions/checkout@v2
- name: "Install build deps"
uses: ./.github/actions/build-deps
with:
sentry-auth-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
gcp-credentials-json: ${{ secrets.GCP_DEV_CREDENTIALS }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: "Install Dependencies"
run: |
go mod download
go install gotest.tools/gotestsum@v1.8.2
- name: Test
run: |
mkdir -p /tmp/test-reports
gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- -run TestMain/test_syncing_tokens ./graphql
pagination-tests:
runs-on: ubuntu-latest
env:
GOOGLE_CREDENTIALS: ${{ secrets.GCP_DEV_CREDENTIALS }}
steps:
- uses: actions/checkout@v2
- name: "Install build deps"
uses: ./.github/actions/build-deps
with:
sentry-auth-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
gcp-credentials-json: ${{ secrets.GCP_DEV_CREDENTIALS }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: "Install Dependencies"
run: |
go mod download
go install gotest.tools/gotestsum@v1.8.2
- name: Test
run: |
mkdir -p /tmp/test-reports
gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- ./publicapi
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies
run: yarn install
- name: Enforce GraphQL Format
run: yarn prettier --check graphql/schema/schema.graphql