-
Notifications
You must be signed in to change notification settings - Fork 3
166 lines (146 loc) · 4.62 KB
/
quality.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: Quality
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-e2e:
runs-on: ubuntu-latest
strategy:
matrix:
adapter: ["sqlite", "proxy"]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: Install puppeteer
run: npm i -g [email protected]
- name: Set up Adapter
run: echo "ADAPTER_TYPE=${{ matrix.adapter }}" >> $GITHUB_ENV
- name: Run E2E tests
run: |
cd ./e2e
pnpm run test
env:
SKIP_MODAL: "true"
ADAPTER_TYPE: ${{ env.ADAPTER_TYPE }}
test-e2e-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: Set up Docker
run: |
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- name: Build Docker Image
run: docker build . -t graphql-debugger -f docker/Dockerfile
- name: Run Docker Image
run: docker run --name graphql-debugger -p 16686:16686 -p 4318:4318 -v $(pwd)/packages/data-access/prisma/dev.db:/usr/src/app/packages/data-access/prisma/dev.db -d graphql-debugger
- name: Install puppeteer
run: npm i -g [email protected]
- name: graphql-debugger/e2e
run: cd ./e2e && pnpm run test
env:
SKIP_MODAL: "true"
E2E_IN_DOCKER: "true"
test-collector-proxy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/collector-proxy
run: cd ./apps/collector-proxy && pnpm run test
test-opentelemetry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/opentelemetry
run: cd ./packages/opentelemetry && pnpm run test
test-time:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/time
run: cd ./packages/time && pnpm run test
test-trace-directive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/trace-directive
run: cd ./packages/trace-directive && pnpm run test
test-trace-schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/trace-schema
run: cd ./packages/trace-schema && pnpm run test
unit-testing-ui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/ui
run: cd ./apps/ui && pnpm run test
test-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/trace-client
run: cd ./packages/client && pnpm run test
test-plugin-express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/plugin-express
run: cd ./plugins/express && pnpm run test
test-plugin-yoga:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/plugin-yoga
run: cd ./plugins/yoga && pnpm run test
test-plugin-apollo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/plugin-apollo
run: cd ./plugins/apollo && pnpm run test
test-adapter-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/adapter-base
run: cd ./packages/adapters/base && pnpm run test
test-adapter-sqlite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/adapter-sqlite
run: cd ./packages/adapters/sqlite && pnpm run test
test-adapter-proxy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: graphql-debugger/adapter-proxy
run: cd ./packages/adapters/proxy && pnpm run test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- name: Lint source
run: pnpm lint