Skip to content

Commit 7062c1e

Browse files
committed
ci: consolidate workflows into ci.yml
1 parent 8ade2bb commit 7062c1e

11 files changed

Lines changed: 357 additions & 346 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Setup pnpm + Node
2+
description: Install pnpm, set up Node.js (pinned via .nvmrc) with pnpm cache, and install dependencies (frozen lockfile)
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup pnpm
8+
uses: pnpm/action-setup@v4
9+
10+
- name: Setup Node.js
11+
uses: actions/setup-node@v6
12+
with:
13+
node-version-file: .nvmrc
14+
cache: pnpm
15+
16+
- name: Install dependencies
17+
shell: bash
18+
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)