-
Notifications
You must be signed in to change notification settings - Fork 19
51 lines (47 loc) · 1.15 KB
/
ci-auth.yml
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
name: CAS Auth tests
on:
push:
paths:
- 'auth/**'
workflow_dispatch: # manually triggered
env:
AWS_ACCOUNT_ID: non
AWS_ACCESS_KEY_ID: non
AWS_SECRET_ACCESS_KEY: non
AWS_REGION: non
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v3
-
name: Start DynamoDB container
run: docker run -d --rm -p 8000:8000 amazon/dynamodb-local
-
name: Setup pnpm
run: |
npm install -g pnpm
pnpm install --no-frozen-lockfile
working-directory: ./auth
-
name: Run unit tests
run: |
pnpm run test --testPathIgnorePatterns=integration
working-directory: ./auth
-
name: Run integration tests
run: |
export TESTING=true
export REST_API_ID=
export REST_API_ROOT_RESOURCE_ID=
export METRIC_BASE_NAME=
export METRIC_NAMESPACE=
sleep 5
# Start Serverless Offline
pnpm run start:testing &
sleep 20
pnpm run test -- integration
working-directory: ./auth