Skip to content

Commit 7bc097d

Browse files
committed
[cueweb] Add tests to ci/cd pipeline
- Adding cueweb tests to the opencue ci/cd pipeline
1 parent 032f701 commit 7bc097d

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/testing-pipeline.yml

+45-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: OpenCue Testing Pipeline
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, cueweb ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ master, cueweb ]
88

99
jobs:
1010
test_python_2022:
@@ -104,6 +104,49 @@ jobs:
104104
- name: Run Sphinx build
105105
run: ci/build_sphinx_docs.sh
106106

107+
test_cueweb:
108+
name: Run CueWeb Tests
109+
runs-on: ubuntu-latest
110+
steps:
111+
- name: Checkout repository
112+
uses: actions/checkout@v2
113+
- name: Use Node.js
114+
uses: actions/setup-node@v1
115+
with:
116+
node-version: 21.x
117+
- name: install dependencies for cueweb
118+
run: npm install
119+
working-directory: ./cueweb
120+
- name: Run tests in Docker container
121+
run: npm test
122+
working-directory: ./cueweb
123+
124+
test_rest_gateway:
125+
name: Run Rest Gateway Tests
126+
runs-on: ubuntu-latest
127+
steps:
128+
- name: Checkout repository
129+
uses: actions/checkout@v2
130+
- name: Setup Go
131+
uses: actions/setup-go@v3
132+
with:
133+
go-version: '1.21'
134+
- name: Install dependencies
135+
run: |
136+
cd rest_gateway/opencue_gateway
137+
go mod tidy
138+
- name: Install protoc-gen-groc-gateway tool
139+
run: |
140+
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
141+
- name: Initialize Go module
142+
run: |
143+
cd rest_gateway/opencue_gateway
144+
go mod init opencue_gateway
145+
- name: Run rest gateway tests
146+
run: |
147+
cd rest_gateway/opencue_gateway
148+
go test -v ./...
149+
107150
check_changed_files:
108151
name: Check Changed Files
109152
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)