66 # Run at 8:30 AM UTC every day
77 - cron : ' 30 8 * * *'
88 workflow_dispatch : # Allow manual triggering
9+ inputs :
10+ branch :
11+ description : ' Branch to test'
12+ required : false
13+ default : ' unstable'
914
1015concurrency :
1116 group : ${{ github.workflow }}-${{ github.ref }}
4752 fail-fast : false
4853 steps :
4954 - uses : actions/checkout@v5
55+ with :
56+ ref : ${{ inputs.branch || 'unstable' }}
5057 - name : Get latest version of stable Rust
5158 uses : moonrepo/setup-rust@v1
5259 with :
5764 run : make test-beacon-chain-${{ matrix.fork }}
5865 timeout-minutes : 60
5966
60- http-api-tests :
61- name : http-api-tests
62- needs : setup-matrix
63- runs-on : ' ubuntu-latest'
64- env :
65- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66- strategy :
67- matrix :
68- fork : ${{ fromJson(needs.setup-matrix.outputs.forks) }}
69- fail-fast : false
70- steps :
71- - uses : actions/checkout@v5
72- - name : Get latest version of stable Rust
73- uses : moonrepo/setup-rust@v1
74- with :
75- channel : stable
76- cache-target : release
77- bins : cargo-nextest
78- - name : Run http_api tests for ${{ matrix.fork }}
79- run : make test-http-api-${{ matrix.fork }}
80- timeout-minutes : 60
81-
8267 op-pool-tests :
8368 name : op-pool-tests
8469 needs : setup-matrix
9176 fail-fast : false
9277 steps :
9378 - uses : actions/checkout@v5
79+ with :
80+ ref : ${{ inputs.branch || 'unstable' }}
9481 - name : Get latest version of stable Rust
9582 uses : moonrepo/setup-rust@v1
9683 with :
@@ -113,6 +100,8 @@ jobs:
113100 fail-fast : false
114101 steps :
115102 - uses : actions/checkout@v5
103+ with :
104+ ref : ${{ inputs.branch || 'unstable' }}
116105 - name : Get latest version of stable Rust
117106 uses : moonrepo/setup-rust@v1
118107 with :
0 commit comments