diff --git a/.github/workflows/testing-pipeline.yml b/.github/workflows/testing-pipeline.yml index bcbbb7706..595203c59 100644 --- a/.github/workflows/testing-pipeline.yml +++ b/.github/workflows/testing-pipeline.yml @@ -2,9 +2,9 @@ name: OpenCue Testing Pipeline on: push: - branches: [ master ] + branches: [ master, cueweb ] pull_request: - branches: [ master ] + branches: [ master, cueweb ] jobs: test_python_2022: @@ -104,6 +104,50 @@ jobs: - name: Run Sphinx build run: ci/build_sphinx_docs.sh + test_cueweb: + name: Run CueWeb Tests + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 21.x + - name: install dependencies for cueweb + run: npm install + working-directory: ./cueweb + - name: Run tests in Docker container + run: npm test + working-directory: ./cueweb + + test_rest_gateway: + name: Run Rest Gateway Tests + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + - name: Initialize go module and install dependencies + run: | + cd rest_gateway/opencue_gateway + go mod init opencue_gateway && go mod tidy + - name: Install protoc-gen-groc-gateway tool + run: | + go install \ + github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \ + github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \ + github.com/golang-jwt/jwt/v5 \ + google.golang.org/protobuf/cmd/protoc-gen-go \ + google.golang.org/grpc/cmd/protoc-gen-go-grpc + - name: Run rest gateway tests + run: | + cd rest_gateway/opencue_gateway + go test -v ./... + check_changed_files: name: Check Changed Files runs-on: ubuntu-latest