| 1 |
name: NATS Server Long Tests |
| 2 |
|
| 3 |
on: |
| 4 |
# Allow manual trigger (any branch) |
| 5 |
workflow_dispatch: |
| 6 |
# Run daily at 12:30 on default branch |
| 7 |
schedule: |
| 8 |
- cron: "30 12 * * *" |
| 9 |
|
| 10 |
permissions: |
| 11 |
contents: read |
| 12 |
|
| 13 |
concurrency: |
| 14 |
# At most one of these workflow per ref running |
| 15 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 16 |
# New one cancels in-progress one |
| 17 |
cancel-in-progress: true |
| 18 |
|
| 19 |
jobs: |
| 20 |
js-long: |
| 21 |
name: Long JetStream tests |
| 22 |
runs-on: ${{ vars.GHA_WORKER_MEDIUM || 'ubuntu-latest' }} |
| 23 |
steps: |
| 24 |
- name: Checkout |
| 25 |
uses: actions/checkout@v6 |
| 26 |
|
| 27 |
- name: Install Go |
| 28 |
uses: actions/setup-go@v6 |
| 29 |
with: |
| 30 |
go-version: stable |
| 31 |
|
| 32 |
- name: Run tests |
| 33 |
run: go test -race -v -run='^TestLong.*' ./server -tags=include_js_long_tests -count=1 -vet=off -timeout=60m -shuffle on -p 1 -failfast |