-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1.15 KB
/
integration.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
name: integration
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: checkout lekkodev/integration-test
uses: actions/checkout@v3
with:
repository: lekkodev/integration-test
token: ${{ secrets.LEKKO_CI_GITHUB_PAT }}
path: ci-integration-test
- name: run sidecar
run: |
cargo build
cargo run --bin sidecar -- --repo-path=$GITHUB_WORKSPACE/ci-integration-test --mode=static > sidecar-out.log 2>&1 &
- uses: bufbuild/buf-setup-action@v1
with:
buf_user: ${{ secrets.BUF_USER }}
buf_api_token: ${{ secrets.BUF_API_TOKEN }}
github_token: ${{ secrets.LEKKO_CI_GITHUB_PAT }}
- name: read cargo logs
run: |
cat sidecar-out.log
- name: query sidecar
run: |
buf curl --data '{"namespace": "default", "key": "example", "repoKey": {"ownerName": "lekkodev", "repoName": "integration-test"}}' --protocol grpc --http2-prior-knowledge --schema buf.build/lekkodev/sdk http://localhost:50051/lekko.client.v1beta1.ConfigurationService/GetBoolValue