-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.07 KB
/
Copy pathintegration-test.yml
File metadata and controls
46 lines (37 loc) · 1.07 KB
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
name: Integration Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
integration-test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
domain: [ec, fintech, saas, social, travel]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build gateway
run: |
cd cmd/go-graphql-federation-gateway
go build -o gateway .
chmod +x gateway
- name: Run success tests - ${{ matrix.domain }}
run: make test-${{ matrix.domain }}
working-directory: ./_example
- name: Run partial-response tests - ${{ matrix.domain }}
run: make partial-test-${{ matrix.domain }}
working-directory: ./_example
- name: Cleanup Docker containers
if: always()
run: |
docker ps -a -q | xargs -r docker stop
docker ps -a -q | xargs -r docker rm