This repository was archived by the owner on Dec 14, 2022. It is now read-only.
forked from maisieccino/ucl-assistant-app
-
Notifications
You must be signed in to change notification settings - Fork 4
76 lines (68 loc) · 2.01 KB
/
CI.yml
File metadata and controls
76 lines (68 loc) · 2.01 KB
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: build & test
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Expo GitHub Action
uses: expo/expo-github-action@v5
with:
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
expo-cache: true
- run: echo '${{ secrets.APP_JSON }}' > app.json
- run: npm ci
- name: codechecks
run: npx codechecks
env:
CC_SECRET: ${{ secrets.CC_SECRET }}
- run: npm run test
- run: expo doctor
- name: deploy
if: github.ref != 'refs/heads/master'
run: |
github_branch="${{ github.ref }}"
github_branch=${github_branch//refs\/heads\//}
expo publish --release-channel=dev.${github_branch//\//-}
android-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/cache@v2
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: echo '${{ secrets.APP_JSON }}' > app.json
- run: npm ci
- name: setup JDK
uses: actions/setup-java@v1
with:
java-version: 12
java-package: jdk
architecture: x64
- name: install appium dependencies (which must be installed globally)
run:
- npm i -g opencv4nodejs mjpeg-consumer
- apt install ffmpeg
- name: check if Appium is happy
run: npx appium-doctor --android