-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.23 KB
/
test-e2e.yml
File metadata and controls
55 lines (45 loc) · 1.23 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 🧪 Test - E2E
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
env:
NODE_VERSION: 20.x
jobs:
test-e2e:
runs-on: ubuntu-latest
services:
dynamodb:
image: amazon/dynamodb-local
ports:
- 8000:8000
options: --health-cmd "curl http://localhost:8000" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node_modules
id: cache-yarn
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Build package
run: yarn build
- name: Run E2E Tests
run: yarn test:e2e
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: fakeMyKeyId
AWS_SECRET_ACCESS_KEY: fakeSecretAccessKey
DYNAMODB_ENDPOINT: http://localhost:8000