chore: fix route test github actions (#14923)
* chore: fix route test actions * chore: bump unified
This commit is contained in:
@@ -77,8 +77,8 @@ jobs:
|
||||
const body = event.comment.body
|
||||
const number = event.issue.number
|
||||
const sender = event.comment.user.login
|
||||
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/identify.js`)
|
||||
return script({ github, context, core }, body, number, sender)
|
||||
const { default: identify } = await import('${{ github.workspace }}/scripts/workflow/test-route/identify.mjs')
|
||||
return identify({ github, context, core }, body, number, sender)
|
||||
|
||||
- name: Build RSSHub
|
||||
if: env.TEST_CONTINUE
|
||||
@@ -107,9 +107,8 @@ jobs:
|
||||
const routes = JSON.parse(process.env.TEST_ROUTES)
|
||||
const number = event.issue.number
|
||||
core.info(`${link}, ${routes}, ${number}`)
|
||||
const got = require("got")
|
||||
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`)
|
||||
return script({ github, context, core, got }, link, routes, number)
|
||||
const { default: test } = await import('${{ github.workspace }}/scripts/workflow/test-route/test.mjs')
|
||||
await test({ github, context, core }, link, routes, number)
|
||||
|
||||
- name: Print logs
|
||||
if: (env.TEST_CONTINUE)
|
||||
|
||||
Reference in New Issue
Block a user