name: "Test" on: push: branches: [ main, develop ] pull_request: # The branches below must be a subset of the branches above branches: [ main, develop ] jobs: test: name: Test runs-on: ubuntu-20.04 services: mongo: image: mongo:5 ports: - 27017:27017 env: CRAWLAB_SERVER_PORT: 9999 steps: - name: Checkout repository uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: go-version: '^1.22' - name: Skip backend unit tests run: | echo "============================================================" echo "Backend unit tests disabled" echo "============================================================" echo "" echo "Reason: Existing tests are integration tests requiring" echo "infrastructure (MongoDB, gRPC servers), not true unit tests." echo "" echo "Use the proper integration test suite instead:" echo " cd tests/" echo " ./test-runner.py --list-specs" echo "" echo "See crawlab/core/BACKEND_TESTS_DISABLED.md for details." echo "============================================================"