QA #149
Workflow file for this run
This file contains hidden or 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
name: QA | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 15 * * 1' | |
jobs: | |
qa: | |
name: QA Static Site | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write # required for peter-evans/create-issue-from-file | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Ruby & Bundle Install | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
bundler-cache: true #runs `bundle install` | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
- name: Install NPM dependencies | |
shell: bash | |
run: npm ci | |
- name: Build & Serve | |
run: | | |
npm run build | |
npm run serve:detached | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
args: --base=http://localhost:4000 . | |
fail: false | |
token: ${{ secrets.ADD_TO_PROJECT_PAT }} | |
workingDirectory: _site | |
- name: Create Issue From File | |
if: steps.lychee.outputs.exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v5 | |
with: | |
title: Resources.data.gov - Link Checker Report | |
content-filepath: ./_site/lychee/out.md | |
issue-number: 811 | |
labels: report, automated issue |