-
Notifications
You must be signed in to change notification settings - Fork 352
49 lines (49 loc) · 1.54 KB
/
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
name: CI
on: [push, pull_request]
jobs:
lint:
name: Code Formatting
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: yarn
- name: Check code formatting
run: yarn lint
test:
name: E2E Test / ${{ matrix.os.name }} / Node.js ${{ matrix.node }}
strategy:
matrix:
os:
- name: Linux
runner: ubuntu-latest
- name: macOS
runner: macos-latest
- name: Windows
runner: windows-latest
node: [14, 16]
# Prevent one failing job from cancelling the other ones
fail-fast: false
runs-on: ${{ matrix.os.runner }}
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: yarn
- name: Build package
run: yarn build
- name: Download example APK
# Download Telegram FOSS as an example APK
# (there might be better APKs for testing, I didn't put a lot of thought into picking this one)
run: curl --location --output example.apk https://github.com/Telegram-FOSS-Team/Telegram-FOSS/releases/download/v7.0.0/TF-BETA-THERMATK-v7.0.0.apk
- name: Patch example APK
run: node bin/apk-mitm example.apk