-
Notifications
You must be signed in to change notification settings - Fork 62
76 lines (73 loc) · 2.5 KB
/
local-router-rhai.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI Router Rhai
on:
pull_request:
branches: [ main ]
schedule:
- cron: '30 7 * * *'
workflow_dispatch:
jobs:
ci-docker-local:
name: CI Router Rhai
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
-
name: install rover
run: |
echo ---------------------------------------------------------------
echo rover - installing ...
echo ---------------------------------------------------------------
curl -sSL https://rover.apollo.dev/nix/latest | sh -s -- --elv2-license accept
echo "$HOME/.rover/bin" >> ${GITHUB_PATH}
-
name: update docker-compose
run: |
which docker-compose && exit 0 || true
echo ---------------------------------------------------------------
echo docker-compose - installing ...
echo ---------------------------------------------------------------
BIN_DIR=$HOME/.docker-compose/bin
FILE=$BIN_DIR/docker-compose
mkdir -p $BIN_DIR
set -x
curl -L --fail https://github.com/docker/compose/releases/download/v2.11.1/docker-compose-`uname -s`-`uname -m` -o $FILE
chmod +x $FILE
echo "downloaded $($FILE --version)"
echo "$BIN_DIR" >> ${GITHUB_PATH}
set +x
echo ---------------------------------------------------------------
- name: check tools
run: |
make deps-check || true
- name: make supergraph
run: |
make config
make compose
cat supergraph/schema/docker.graphql
- name: docker-compose build
run: |
set -x
docker-compose \
-f docker-compose.yaml \
-f opentelemetry/docker-compose.otel.yaml \
-f misc/local/docker-compose.router-rhai.yaml \
build --parallel --progress plain
- name: docker-compose up -d
run: |
set -x
docker-compose \
-f docker-compose.yaml \
-f opentelemetry/docker-compose.otel.yaml \
-f misc/local/docker-compose.router-rhai.yaml \
up -d
sleep 8
docker-compose \
-f docker-compose.yaml \
-f opentelemetry/docker-compose.otel.yaml \
-f misc/local/docker-compose.router-rhai.yaml \
logs
- name: smoke test
run: .scripts/smoke.sh 4000
- name: docker-compose down
run: docker-compose down --remove-orphans