Skip to content

Make shell commands in README easier to copy (#114) #72

Make shell commands in README easier to copy (#114)

Make shell commands in README easier to copy (#114) #72

Workflow file for this run

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