Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 29fdb91

Browse files
committed
update broken links report
1 parent 3b281b0 commit 29fdb91

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

.github/workflows/qa.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
1-
name: QA Static Site
1+
name: QA
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "0 15 * * 1"
6+
- cron: '0 15 * * 1'
77

88
jobs:
99
qa:
10-
name: QA Static Site
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: checkout
14-
uses: actions/checkout@v3
15-
- uses: ruby/setup-ruby@v1
16-
with:
17-
bundler-cache: true
18-
- uses: actions/setup-node@v4
19-
with:
20-
node-version: '20'
21-
- name: USWDS
22-
run: |
23-
npm install
24-
npm run gulp
25-
- name: Build static site
26-
run: bundle exec jekyll build
27-
- name: Test External Links
28-
run: bundle exec htmlproofer --check-html _site
10+
uses: gsa/data.gov/.github/workflows/static-site-qa-template.yml@main
11+
with:
12+
site_url: https://sdg.data.gov
13+
issue_number: 1140

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,30 @@
22

33
This is a starter repository to help in implementing the [Open SDG](https://github.com/open-sdg/open-sdg) platform. [See here for documentation](https://open-sdg.readthedocs.io).
44

5-
### Requirements
5+
## Requirements
66

77
- [Ruby](https://www.ruby-lang.org/en/) > 3.0
88
- [Bundler](https://bundler.io/) > 2.0
99

10-
# Usage
10+
## Usage
1111
| Command | Description |
1212
|---------|-------------|
1313
| `bundle install` | install the current dependencies |
1414
| `bundle exec jekyll build` | build the site. dumps to `_site` |
1515
| `bundle exec jekyll serve` | builds the site and serves it locally |
1616

17-
### Publication
17+
## Publication
1818
- the static sites created using this repo are configured to be published by pages.cloud.gov via webhooks. For more information on cloud.gov pages visit the [website](https://cloud.gov/pages/)
1919

20-
### Requirements
20+
## Requirements
2121

2222
- [Ruby](https://www.ruby-lang.org/en/) = 2.6.0
2323
- [Bundler](https://bundler.io/) > 2.0
2424
- [Node](https://nodejs.org/en/download/) > 16.0
2525

2626
NOTE: You must build this repo with Ruby 2.6.0.
27-
### Setup
27+
28+
## Setup
2829

2930
After you've confirmed the above requirements, all lifecycle operations can be run with NPM scripts (ex. `npm run build`)
3031

@@ -36,6 +37,17 @@ After you've confirmed the above requirements, all lifecycle operations can be r
3637
| test | Check for broken internal links |
3738
| qa | Check for broken external links |
3839

40+
## Broken Links
41+
42+
We run a [weekly QA cron job](https://github.com/GSA/sdg-indicators-usa/actions/workflows/qa.yml) to test for broken links.
43+
44+
Any errors the QA job finds will be added to the [📌 Link Checker Report](https://github.com/GSA/sdg-indicators-usa/issues/1140).
45+
46+
False positives, or URLs you wish to ignore can be put in the `.lycheeignore` file. This supports regex matching as well.
47+
48+
This job can also be run locally. Install instructions here: https://lychee.cli.rs/installation/
49+
50+
Then run with args: `lychee --base=https://sdg.data.gov .`
3951

4052
## Contributing
4153

0 commit comments

Comments
 (0)