Skip to content

feat: add ci pipeline for testing gin-mongo native #1

feat: add ci pipeline for testing gin-mongo native

feat: add ci pipeline for testing gin-mongo native #1

Workflow file for this run

# name: Golang Mongo On Linux (record-hosted -- test-build)
# on: [pull_request]
# jobs:
# go-mongo-linux:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Build binary
# run: |
# go build -tags=viper_bind_struct -o kTestBuild . && sudo mv kTestBuild /usr/local/bin/
# - name: Checkout the samples-go repository
# uses: actions/checkout@v2
# with:
# repository: keploy/samples-go
# path: samples-go
# - name: Run samples-go application
# run: |
# cd samples-go/gin-mongo
# source ./../../.github/workflows/test-bench-workflow-scripts/mongo/go-mongo-linux-1.sh
name: Test Keploy with Golang-Mongo
on: [pull_request]
jobs:
test-go-mongo:

Check failure on line 27 in .github/workflows/test_stage.yml

View workflow run for this annotation

GitHub Actions / Test Keploy with Golang-Mongo

Invalid workflow file

The workflow is not valid. .github/workflows/test_stage.yml (Line: 27, Col: 3): The workflow must contain at least one job with no dependencies.
needs: [build] # This ensures the test job waits for the 'build' job to complete successfully
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download Keploy Binary
uses: actions/download-artifact@v2
with:
name: keploy-binary
path: /usr/local/bin
- name: Set execute permissions for keploy binary
run: sudo chmod +x /usr/local/bin/kTestBuild
- name: Checkout the samples-go repository
uses: actions/checkout@v2
with:
repository: keploy/samples-go
path: samples-go
- name: Run samples-go application
run: |
cd samples-go/gin-mongo
source ./../../.github/workflows/test-bench-workflow-scripts/mongo/go-mongo-linux-1.sh