chore: fix on demand test pptr not found (#12660)

* chore: fix on demand test pptr not found

* chore: add node 20 to ci env
This commit is contained in:
Tony
2023-06-12 21:24:39 +08:00
committed by GitHub
parent f5bac4e539
commit 8c1e4be962
8 changed files with 23 additions and 25 deletions
+8 -10
View File
@@ -32,12 +32,10 @@ jobs:
contents: read
issues: write
steps:
- uses: bhermann/issue-volunteer@v0.1.20
- uses: bdougie/take-action@v1.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
assign_phrase: '/wip'
label_phase1: RSS proposal
label_phase2: RSS bug
token: ${{ secrets.GITHUB_TOKEN }}
trigger: '/wip'
test-on-demand:
name: Test route on demand
@@ -56,14 +54,14 @@ jobs:
with:
version: 8
- name: Use Node.js v18
- name: Use Node.js Active LTS
uses: actions/setup-node@v3
with:
node-version: 18
node-version: lts/*
cache: 'pnpm'
- name: Install dependencies (pnpm)
run: pnpm i
run: pnpm i && pnpm rb
- name: Fetch affected routes
id: fetchRoute
@@ -77,7 +75,7 @@ jobs:
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 await script({ github, context, core }, body, number, sender)
return script({ github, context, core }, body, number, sender)
- name: Start RSSHub
if: env.TEST_CONTINUE
@@ -104,7 +102,7 @@ jobs:
core.info(`${link}, ${routes}, ${number}`)
const got = require("got")
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`)
return await script({ github, context, core, got }, link, routes, number)
return script({ github, context, core, got }, link, routes, number)
- name: Print logs
if: (env.TEST_CONTINUE)