github-actions: 运行单元测试

This commit is contained in:
王良
2025-02-08 16:25:13 +08:00
parent 85f7b1aea0
commit f62d1a3ad6
25 changed files with 242 additions and 160 deletions

View File

@@ -37,16 +37,16 @@ function createPacClient (pacFilePath) {
const __RULES__ = getRules(pacFilePath)
/* eslint-disable */
// Was generated by gfwlist2pac in precise mode
// https://github.com/clowwindy/gfwlist2pac
// Was generated by gfwlist2pac in precise mode
// https://github.com/clowwindy/gfwlist2pac
// 2019-10-06: More 'javascript' way to interaction with main program
// 2019-02-08: Updated to support shadowsocks-windows user rules.
// 2019-10-06: More 'javascript' way to interaction with main program
// 2019-02-08: Updated to support shadowsocks-windows user rules.
const proxy = __PROXY__
const rules = []
// convert to abp grammar
// convert to abp grammar
for (let i = 0; i < __RULES__.length; i++) {
let s = __RULES__[i]
if (s.substring(0, 2) === "||") s += "^"
@@ -669,7 +669,8 @@ function createPacClient (pacFilePath) {
return {
FindProxyForURL
FindProxyForURL,
proxyUrl: __PROXY__
}
}