-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (33 loc) · 1001 Bytes
/
ci.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
name: CI Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Create a Docker network
run: docker network create sls-node-ts
- name: Run docker-compose
run: docker-compose -f dev/docker-compose.yaml up -d
- name: Sleep for 60 seconds
run: sleep 60s
shell: bash
- name: Install dependencies
run: npm install
- name: Check running containers
run: docker ps -a
- name: Run tests
env:
AWS_DEFAULT_REGION: eu-west-1
AWS_REGION: eu-west-1
AWS_ACCOUNT_ID: "000000000000"
AWS_ACCESS_KEY_ID: dummy-access-key
AWS_SECRET_ACCESS_KEY: dummy-secret-key
run: npm test