-
Notifications
You must be signed in to change notification settings - Fork 61
53 lines (53 loc) · 1.78 KB
/
Tests.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
53
name: Tests
on:
push:
paths:
- '*.sh'
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Update the system
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt install curl grep
- name: Test by building youtube-revanced on Ubuntu
run: |
# curl -OL https://github.com/XDream8/revanced-creator/releases/download/v0.1/revanced-creator.keystore
# export additional_args="--keystore=revanced-creator.keystore"
sh -c "$(curl https://raw.githubusercontent.com/XDream8/revanced-creator/main/patch.sh)"
- name: Check if revanced-youtube apk is created
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "revanced-*-non-root.apk"
allow_failure: true
windows:
runs-on: windows-latest
defaults:
run:
shell: wsl-bash {0}
steps:
- name: Setup WSL
uses: Vampire/setup-wsl@v1
with:
distribution: Ubuntu-22.04
additional-packages: curl grep gawk openjdk-17-jdk
- name: Test by building youtube-revanced on WSL
run: |
# curl -OL https://github.com/XDream8/revanced-creator/releases/download/v0.1/revanced-creator.keystore
# export additional_args="--keystore=revanced-creator.keystore"
sh -c "$(curl https://raw.githubusercontent.com/XDream8/revanced-creator/main/patch.sh)"
- name: Check if revanced-youtube apk is created
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "revanced-*-non-root.apk"
allow_failure: true