Skip to content

Commit 487efe9

Browse files
zeme-wanaeffectfully
authored andcommitted
Let nightly.yml accept hedgehog-tests input (#6062)
* Let nightly.yml accept hedgehog-tests input * Default tests from 10k to 50k
1 parent dfd39c2 commit 487efe9

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/nightly.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,41 @@ name: Nightly Test Suite
33
on:
44
schedule:
55
- cron: 0 0 * * * # daily at midnight
6+
67
workflow_dispatch: # or manually dispatch the job
8+
inputs:
9+
hedgehog-tests:
10+
description: Numer of tests to run (--hedgehog-tests XXXXX)
11+
required: false
12+
default: "50000"
13+
14+
env:
15+
HEDGEHOG_TESTS: ${{ github.event.inputs.hedgehog-tests || 50000 }}
716

817
jobs:
918
nightly-test-suite:
19+
timeout-minutes: 14400
1020
runs-on: ubuntu-latest
1121
steps:
1222
- name: Checkout
1323
uses: actions/checkout@v4
1424

15-
- name: Quick Install Nix
16-
uses: cachix/install-nix-action@V27
17-
with:
18-
extra_nix_config: |
19-
experimental-features = nix-command flakes
20-
accept-flake-config = true
25+
- name: Install Nix
26+
uses: DeterminateSystems/nix-installer-action@main
2127

28+
- name: Use Magic Nix Cache
29+
uses: DeterminateSystems/magic-nix-cache-action@main
30+
2231
- name: plutus-core-nightly
2332
if: always()
2433
run: |
2534
pushd plutus-core
26-
nix run --no-warn-dirty --accept-flake-config .#plutus-core-test -- --hedgehog-tests 10000
35+
nix run --no-warn-dirty --accept-flake-config .#plutus-core-test -- --hedgehog-tests $HEDGEHOG_TESTS
2736
popd
2837
2938
- name: plutus-ir-nightly
3039
if: always()
3140
run: |
3241
pushd plutus-core
33-
nix run --no-warn-dirty --accept-flake-config .#plutus-ir-test -- --hedgehog-tests 10000
42+
nix run --no-warn-dirty --accept-flake-config .#plutus-ir-test -- --hedgehog-tests $HEDGEHOG_TESTS
3443
popd

0 commit comments

Comments
 (0)