-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (67 loc) · 1.84 KB
/
sfn-wdl-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: SFN-WDL Integration Tests
on:
push
env:
LC_ALL: C.UTF-8
LANG: C.UTF-8
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
LOCALSTACK_API_KEY: ${{secrets.LOCALSTACK_API_KEY}}
# These specific values are mandatory, they are sent to lambda hard coded
AWS_SESSION_TOKEN: session-token
AWS_DEFAULT_REGION: us-east-1
jobs:
linters:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{runner.os}}-cache
- name: Run linters
run: source scripts/init_ci_runner.sh && make lint
unit_tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{runner.os}}-cache
- name: Run tests
run: |
source scripts/init_ci_runner.sh
docker pull ghcr.io/chanzuckerberg/swipe:latest
make up
sleep 1
make test
# TODO: re-enable once we fix the notifications bug https://github.com/chanzuckerberg/swipe/issues/92
# localstack_tests:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - uses: actions/cache@v1
# with:
# path: ~/.cache
# key: ${{runner.os}}-cache
# - name: Run tests
# run: |
# source scripts/init_ci_runner.sh
# docker pull ghcr.io/chanzuckerberg/swipe:latest
# make localstack-test
terraform_format:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{runner.os}}-cache
- name: Check Terraform Format
run: |
make format
git diff --exit-code