-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.42 KB
/
test.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
52
53
54
55
56
57
58
59
60
61
62
name: 'Test'
on:
pull_request:
push:
branches:
- main
- next
- alpha
workflow_dispatch:
jobs:
test:
services:
localstack:
image: localstack/localstack
ports:
- 4566:4566
- 4571:4571
env:
LOCALSTACK_URL: http://localhost:4566
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_ENDPOINT_URL: http://localhost:4566
AWS_DEFAULT_REGION: us-east-1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
- name: Test Action
id: test_action
env:
LOCALSTACK_URL: http://localhost:4566
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_ENDPOINT_URL: http://localhost:4566
AWS_DEFAULT_REGION: us-east-1
uses: ./
with:
stackName: 'test-stack'
templateFile: 'test/test-template.json'
capabilities: 'CAPABILITY_IAM'
timeout: 60
wait: true
executeChangeSet: true
enableRollback: false
terminationProtection: false
parameterOverridesFilePath: 'test/parameters.json'
- name: Integration tests
timeout-minutes: 5
run: |
npm install --immutable
npm run test --runInBand --detectOpenHandles --forceExit