Skip to content

Commit aca3de9

Browse files
authored
Merge pull request #5161 from GSA/update-qa-template
Updates qa template to run lychee action
2 parents 1ed2719 + 3a6b37d commit aca3de9

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/static-site-qa-template.yml

+22-15
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,33 @@ name: Static Site QA Template
22

33
on: # yamllint disable-line rule:truthy
44
workflow_call:
5-
5+
inputs:
6+
site_url:
7+
required: true
8+
type: string
9+
issue_number:
10+
required: true
11+
type: number
612
jobs:
713
qa:
814
name: QA Static Site
915
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write # required for peter-evans/create-issue-from-file
1018
steps:
11-
- name: checkout
19+
- name: Checkout Code
1220
uses: actions/checkout@v4
13-
- uses: ruby/setup-ruby@v1
21+
- name: Run Link Checker
22+
id: lychee
23+
uses: lycheeverse/lychee-action@v2
1424
with:
15-
ruby-version: "3.1"
16-
bundler-cache: true #runs `bundle install`
17-
- name: Install node.js
18-
uses: actions/setup-node@v4
25+
args: "--base=${{inputs.site_url}} ."
26+
fail: false
27+
- name: Create Issue From File
28+
if: steps.lychee.outputs.exit_code != 0
29+
uses: peter-evans/create-issue-from-file@v5
1930
with:
20-
node-version: "20"
21-
- name: Install NPM dependencies
22-
shell: bash
23-
run: npm install
24-
- name: Build
25-
run: npm run build
26-
- name: QA
27-
run: npm run qa
31+
title: "📌 Link Checker Report"
32+
content-filepath: ./lychee/out.md
33+
issue-number: ${{inputs.issue_number}}
34+
labels: report, automated issue

0 commit comments

Comments
 (0)