-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 993 Bytes
/
test-integration.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
name: test-integration
on: [pull_request]
jobs:
build:
runs-on: ubuntu-18.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use Node.js v12
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_APP_ADMIN_EMAILS: ${{ secrets.APP_ADMIN_EMAILS }}
envkey_APP_MAIL_SOURCE: ${{ secrets.APP_MAIL_SOURCE }}
envkey_AWS_SES_ACCESS_KEY: ${{ secrets.AWS_SES_ACCESS_KEY }}
envkey_AWS_SES_SECRET_ACCESS_KEY: ${{ secrets.AWS_SES_SECRET_ACCESS_KEY }}
envkey_APP_DOMAIN: ${{ secrets.APP_DOMAIN }}
file_name: .env.local
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Unit tests
run: yarn test
- name: Integration tests
run: docker-compose up --build --quiet-pull --exit-code-from integration