openpencil/.github/workflows/heavy-tests.yml
2026-06-30 10:55:04 +03:00

37 lines
827 B
YAML

name: Heavy tests
on:
workflow_dispatch:
schedule:
- cron: '17 3 * * *'
concurrency:
group: heavy-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
fixture-heavy-unit-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-bun
with:
lfs: 'true'
- name: Build packages
run: bun run build:packages
- name: Heavy fixture unit tests
shell: bash
run: |
mapfile -t test_files < <(bun tools/unit-tests/src/list.ts all --heavy-only)
if [ "${#test_files[@]}" -eq 0 ]; then
echo "No heavy unit tests found"
exit 0
fi
bun test --timeout 180000 "${test_files[@]}"
env:
BUN_HEAVY_TESTS: 'true'