Submit draft issue reports from Strudy analysis #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
inputs: | |
profile: | |
description: 'Type of issues to draft' | |
required: true | |
default: 'regular' | |
type: choice | |
options: | |
- regular | |
- challenging | |
name: Submit draft issue reports from Strudy analysis | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Checkout strudy | |
uses: actions/checkout@v4 | |
with: | |
path: strudy | |
- name: Install dependencies | |
run: npm ci | |
working-directory: strudy | |
- name: Checkout webref | |
uses: actions/checkout@v4 | |
with: | |
repository: w3c/webref | |
path: webref | |
- name: Configure git | |
run: | | |
git config user.name "strudy-bot" | |
git config user.email "<>" | |
git remote set-url --push origin https://x-access-token:${{ secrets.ISSUE_REPORT_GH_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
working-directory: strudy | |
- name: Analyze the raw crawl results (regular) | |
working-directory: strudy | |
if: ${{ inputs.profile == 'regular' }} | |
run: | | |
node strudy.js inspect ../webref \ | |
--issues issues \ | |
--update-mode untracked \ | |
--cc ${{ vars.CC }} \ | |
--what brokenLinks \ | |
--what discontinuedReferences \ | |
- name: Analyze the raw crawl results (challenging) | |
working-directory: strudy | |
if: ${{ inputs.profile == 'challenging' }} | |
run: | | |
node strudy.js inspect ../webref \ | |
--issues issues \ | |
--update-mode untracked \ | |
--cc ${{ vars.CC }} \ | |
--what missingTask | |
- name: Switch to the curated branch | |
uses: actions/checkout@v4 | |
with: | |
repository: w3c/webref | |
path: webref | |
ref: curated | |
- name: Analyze the curated crawl results | |
working-directory: strudy | |
if: ${{ inputs.profile == 'regular' }} | |
run: | | |
node strudy.js inspect ../webref \ | |
--issues issues \ | |
--update-mode untracked \ | |
--cc ${{ vars.CC }} \ | |
--what incompatiblePartialIdlExposure \ | |
--what unexpectedEventHandler \ | |
--what wrongCaseEnumValue \ | |
--what noEvent | |
- name: Run issue filer script | |
working-directory: strudy | |
run: node src/reporting/file-issue-for-review.js --max 10 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ISSUE_REPORT_GH_TOKEN }} | |