-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (30 loc) · 1000 Bytes
/
backend.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
name: Backend tests
on:
pull_request:
branches:
- master
jobs:
test:
name: API tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install packages
working-directory: ./backend/functions
run: npm i
- name: Run tests
working-directory: ./backend/functions
env:
REACT_APP_API_KEY: ${{ secrets.REACT_APP_API_KEY }}
REACT_APP_AUTH_DOMAIN: ${{ secrets.REACT_APP_AUTH_DOMAIN }}
REACT_APP_PROJECT_ID: ${{ secrets.REACT_APP_PROJECT_ID }}
REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }}
REACT_APP_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_MESSAGING_SENDER_ID }}
REACT_APP_APP_ID: ${{ secrets.REACT_APP_APP_ID }}
run: |
echo "{\"email\": {}}" > $(pwd)/.runtimeconfig.json &
cat $(pwd)/.runtimeconfig.json &
npm run ci