Skip to content

Commit 3f14e6c

Browse files
committed
ci: consolidate workflows into ci.yml
1 parent 8ade2bb commit 3f14e6c

9 files changed

Lines changed: 340 additions & 345 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Setup pnpm + Node
2+
description: Install pnpm, set up Node.js with pnpm cache, and install dependencies (frozen lockfile)
3+
4+
inputs:
5+
node-version:
6+
description: Node.js version (passed to actions/setup-node)
7+
required: false
8+
default: lts/*
9+
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
node-version: ${{ inputs.node-version }}
20+
cache: pnpm
21+
22+
- name: Install dependencies
23+
shell: bash
24+
run: pnpm install --frozen-lockfile
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Wait for HTTP server
2+
description: Poll a URL until it responds with a successful status, or fail after a timeout.
3+
4+
inputs:
5+
url:
6+
description: URL to poll
7+
required: true
8+
timeout-seconds:
9+
description: Maximum seconds to wait
10+
required: false
11+
default: "90"
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- shell: bash
17+
env:
18+
URL: ${{ inputs.url }}
19+
TIMEOUT: ${{ inputs.timeout-seconds }}
20+
run: |
21+
for _ in $(seq 1 "$TIMEOUT"); do
22+
if curl -sfo /dev/null "$URL"; then
23+
echo "Server is up at $URL"
24+
exit 0
25+
fi
26+
sleep 1
27+
done
28+
echo "Server at $URL did not respond within ${TIMEOUT}s"
29+
exit 1

.github/workflows/chromatic-pages.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

.github/workflows/chromatic.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)