-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (50 loc) · 1.43 KB
/
bypass-tool-test.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
54
55
56
57
58
name: cloudflare bypass test
on:
push:
paths:
- '**lib/**'
- '**requirements.txt'
- '**package.json'
- '!**.md'
jobs:
build-and-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- uses: actions/cache@v4
with:
path: |
~/.local/lib/python3.8/site-packages
./node_modules
~/.cache/puppeteer
key: ${{ runner.os }}-autoCI-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-autoCI-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/package.json') }}
- name: install dependences
run: |
npm install
pip install -r requirements.txt
- name: puppeteer
run: |
source $GITHUB_WORKSPACE/coco/coco.sh
puppeteer
- name: selenium
run: |
source $GITHUB_WORKSPACE/coco/coco.sh
selenium
- name: cloudscraper
continue-on-error: true
run: |
source $GITHUB_WORKSPACE/coco/coco.sh
cloudscraper
- name: Delete workflow runs
continue-on-error: true
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 2
keep_minimum_runs: 6