Create Agency page #1254
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
name: test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: URLs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install NPM dependencies | |
run: npm install | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Build and start up jekyll server | |
run: npm run build && npm run start-detached | |
- name: Test for broken URLs | |
run: bundle exec htmlproofer --ignore-status-codes "0,403,405,406,429,503,999" --no-enforce-https --swap-urls "https\://digitalcorps.gsa.gov:" _site |