-
Notifications
You must be signed in to change notification settings - Fork 218
40 lines (38 loc) · 1.17 KB
/
integration.yml
File metadata and controls
40 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Integration Tests
on:
pull_request:
paths-ignore:
- "**/*.md"
jobs:
integration:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Start LocalStack
run: docker compose up -d
- name: Install dependencies
run: |
npm install --legacy-peer-deps
npm install --legacy-peer-deps --prefix fixtures/
- name: Wait for LocalStack
run: |
echo "Waiting for LocalStack to be ready..."
for i in $(seq 1 30); do
HEALTH=$(curl -s http://localhost:4566/_localstack/health)
if echo "$HEALTH" | grep -q '"cloudformation": "available"' && \
echo "$HEALTH" | grep -q '"s3": "available"' && \
echo "$HEALTH" | grep -q '"stepfunctions": "available"'; then
echo "LocalStack is ready"
exit 0
fi
sleep 2
done
echo "LocalStack did not become ready in time"
exit 1
- name: Deploy fixtures
run: npm run test:integration