Update ci for testing PR and create manhuaren (#3888)
* ci: print diff of plain yaml when testing PR * create manhuaren
This commit is contained in:
1 parent
4442267f9e
commit
f54a72c2fc
3 files changed
+49
-16
No files matched your search
@@ -9,32 +9,53 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout codebase
|
- name: Checkout PR base
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
path: code
|
ref: ${{ github.event.pull_request.base.sha }}
|
||||||
|
path: base
|
||||||
|
|
||||||
|
- name: Checkout PR head
|
||||||
|
uses: actions/checkout@v7
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
path: test
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: code/go.mod
|
go-version-file: test/go.mod
|
||||||
cache-dependency-path: code/go.sum
|
cache-dependency-path: test/go.sum
|
||||||
|
|
||||||
- name: Set variables
|
- name: Build .dat and .yml
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
|
[ -d ./base/data/ ] && [ -d ./test/data/ ] || exit 1
|
||||||
echo "TAG_NAME=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
|
mv ./base/data/ ./test/basedata/
|
||||||
shell: bash
|
rm -rf ./base
|
||||||
|
cd test || exit 1
|
||||||
|
# Base files
|
||||||
|
go run ./main.go --datapath=./basedata --outputdir=../
|
||||||
|
go run ./cmd/datdump/main.go --inputdata=../dlc.dat --outputdir=../ --exportlists=_all_
|
||||||
|
rm -f ../dlc.dat
|
||||||
|
mv ../dlc.dat_plain.yml ../BASE-${{ github.run_number }}-dlc.yml
|
||||||
|
# Head files
|
||||||
|
go run ./main.go --datapath=./data --outputdir=../
|
||||||
|
go run ./cmd/datdump/main.go --inputdata=../dlc.dat --outputdir=../ --exportlists=_all_
|
||||||
|
mv ../dlc.dat ../TEST-${{ github.run_number }}-dlc.dat
|
||||||
|
mv ../dlc.dat_plain.yml ../TEST-${{ github.run_number }}-dlc.yml
|
||||||
|
cd ../ && rm -rf ./test
|
||||||
|
|
||||||
- name: Build dlc.dat file
|
- name: Print plain diff
|
||||||
run: |
|
run: |
|
||||||
cd code || exit 1
|
echo "Base: ${{ github.event.pull_request.base.sha }}"
|
||||||
go run ./ --outputdir=../ --exportlists=category-ads-all,tld-cn,cn,tld-\!cn,geolocation-\!cn,apple,icloud
|
echo "Head: ${{ github.event.pull_request.head.sha }}"
|
||||||
cd ../ && rm -rf code
|
diff -us BASE-${{ github.run_number }}-dlc.yml TEST-${{ github.run_number }}-dlc.yml | tee TEST-${{ github.run_number }}-dlc.diff
|
||||||
mv dlc.dat TEST-${{ github.run_number }}-dlc.dat
|
rm -f BASE-${{ github.run_number }}-dlc.yml TEST-${{ github.run_number }}-dlc.yml
|
||||||
|
|
||||||
- name: Upload TEST-${{ github.run_number }}-dlc.dat
|
- name: Upload TEST-${{ github.run_number }} files
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: TEST-${{ github.run_number }}-dlc.dat
|
name: TEST-${{ github.run_number }}
|
||||||
path: TEST-${{ github.run_number }}-dlc.dat
|
path: |
|
||||||
|
TEST-${{ github.run_number }}-dlc.dat
|
||||||
|
TEST-${{ github.run_number }}-dlc.diff
|
||||||
@@ -20,6 +20,7 @@ include:kuaikan
|
|||||||
include:kuaishou
|
include:kuaishou
|
||||||
include:le
|
include:le
|
||||||
include:lizhi
|
include:lizhi
|
||||||
|
include:manhuaren
|
||||||
include:pptv
|
include:pptv
|
||||||
include:qimao
|
include:qimao
|
||||||
include:qingtingfm
|
include:qingtingfm
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# 漫画人/动漫屋 瑞安市我喜欢网络有限公司
|
||||||
|
1kkk.com
|
||||||
|
cdndm5.com
|
||||||
|
dm5.cn
|
||||||
|
dm5.com
|
||||||
|
dm9.com
|
||||||
|
gmanhua.com
|
||||||
|
hkmanga.com
|
||||||
|
manben.com
|
||||||
|
manbenapi.com
|
||||||
|
manhuaren.com
|
||||||
Reference in new issue
Block a user