nxtgauge-backend-rust/.forgejo/workflows/test.yaml
Ashwin Kumar Sivakumar 24e85db097
Some checks failed
build-and-release / build (catering-services) (push) Successful in 20s
build-and-release / build (cron) (push) Successful in 29s
build-and-release / build (companies) (push) Successful in 48s
build-and-release / build (customers) (push) Successful in 1m0s
build-and-release / build (fitness-trainers) (push) Successful in 36s
build-and-release / build (employees) (push) Successful in 58s
build-and-release / build (graphic-designers) (push) Successful in 40s
build-and-release / build (gateway) (push) Successful in 56s
build-and-release / build (jobs) (push) Successful in 35s
build-and-release / build (makeup-artists) (push) Successful in 27s
build-and-release / build (developers) (push) Failing after 1m56s
build-and-release / build (payments) (push) Successful in 30s
build-and-release / build (social-media-managers) (push) Successful in 19s
build-and-release / build (tutors) (push) Successful in 19s
build-and-release / build (ugc-content-creators) (push) Successful in 14s
backend-integration-tests / ai-credits (push) Successful in 5s
build-and-release / build (video-editors) (push) Successful in 12s
build-and-release / build (job-seekers) (push) Successful in 1m38s
build-and-release / build (photographers) (push) Successful in 2m8s
build-and-release / build (users) (push) Successful in 4m15s
debug: add back a conditional step to isolate the failure further
2026-08-13 18:01:39 +05:30

53 lines
1.5 KiB
YAML

name: backend-integration-tests
on:
push:
branches:
- main
- high-performance
concurrency:
group: backend-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
ai-credits:
runs-on: docker-ready
env:
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for relevant changes
id: check
run: |
set -euo pipefail
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
BASE="${{ github.event.before }}"
if [ -z "$BASE" ] || [ "$BASE" = "0000000000000000000000000000000000000000" ] \
|| ! git rev-parse --verify "${BASE}^{commit}" >/dev/null 2>&1; then
BASE="HEAD^"
fi
CHANGED_FILES="$(git diff --name-only "$BASE" HEAD)"
else
CHANGED_FILES="$(git ls-files)"
fi
run=false
if echo "$CHANGED_FILES" | grep -Eq '^(crates/db/|Cargo\.toml|Cargo\.lock|\.forgejo/workflows/test\.yaml)'; then
run=true
fi
echo "run=$run" >> "$GITHUB_OUTPUT"
if [ "$run" = "false" ]; then
echo "No changes relevant to crates/db - skipping integration tests."
fi
- name: Debug echo after check
run: echo "check.outputs.run was ${{ steps.check.outputs.run }}"
- name: Debug conditional step
if: steps.check.outputs.run == 'true'
run: echo "conditional step ran"