mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-20 18:56:30 +00:00
CI: start a dev node for the slow specs on every PR and nightly
A new PR job, test:slow, starts a bizinikiwi dev node and runs the .slow. specs. The nightly test:all includes them, so it starts the same node. start-dev-node.sh pins the image by digest and fails when the node does not answer, so the specs never run without one.
This commit is contained in:
1 parent
1978e00ad1
commit
3f40fff03b
3 files changed
+46
No files matched your search
@@ -24,3 +24,22 @@ jobs:
|
||||
# tree it changed. The committed tree must already be what they produce.
|
||||
- name: tree unchanged
|
||||
run: git diff --exit-code --stat
|
||||
|
||||
# The .slow. specs drive the UI against a live dev node; `yarn test` leaves
|
||||
# them out, so they run here with one.
|
||||
slow:
|
||||
name: pr (test:slow)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
- name: dev node
|
||||
run: .github/scripts/start-dev-node.sh
|
||||
- name: test:slow
|
||||
run: |
|
||||
corepack enable
|
||||
yarn install --immutable
|
||||
yarn test:slow
|
||||
@@ -20,6 +20,9 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
# test:all includes the .slow. specs, which need a live dev node
|
||||
- name: dev node
|
||||
run: .github/scripts/start-dev-node.sh
|
||||
- name: ${{ matrix.step }}
|
||||
run: |
|
||||
yarn install --immutable
|
||||
|
||||
Reference in new issue
Block a user