-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (52 loc) · 1.33 KB
/
android.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
name: Android
on:
push:
branches:
- develop
pull_request:
# By default, a workflow only runs when a pull_request 's activity type is
# opened , synchronize , or reopened. Adding ready_for_review here ensures
# that CI runs when a PR is marked as not a draft, since we skip CI when a
# PR is draft
types: [opened, synchronize, reopened, ready_for_review]
jobs:
backend-tests:
if: github.event.pull_request.draft == false
name: backend tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Node
uses: actions/setup-node@v2
with:
node-version: "12.16.3"
- name: Npm Install
run: |
npm ci
cd src/backend
npm ci
- name: Backend Tests
run: |
cd src/backend
npm test
frontend-tests:
if: github.event.pull_request.draft == false
name: frontend tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Node
uses: actions/setup-node@v2
with:
node-version: "12.16.3"
- name: Npm Install
run: |
npm ci
- name: Build translations
run: |
npm run build:translations
- name: Frontend Tests
run: |
npm test