Skip to content

Commit

Permalink
fix: add graphql-server test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour committed Jul 19, 2023
1 parent b4de5c5 commit cdf3815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ jobs:
--debug \
--namespace default \
--target-branch ${{ github.event.repository.default_branch }}
- name: Test graphql-server connection
run: |
helm test rollups-validator-node-${{ github.event.repository.default_branch }}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "validator.fullname" . }}-test-connection"
labels: {{- include "validator.labels" . | nindent 4 }}
name: "{{ .Release.Name }}-graphql-server-http-check"
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
- name: http-check
image: busybox
command: ['wget']
args: ['{{ include "validator.fullname" . }}-graphql-server:{{ .Values.endpoints.graphqlServer.service.port }}']
restartPolicy: Never
args: ['--spider', '--timeout=5', 'http://{{ include "validator.fullname" . }}-graphql-server:{{ .Values.endpoints.graphqlServer.service.port }}']
restartPolicy: Never

0 comments on commit cdf3815

Please sign in to comment.