create blog page #277
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 --http-status-ignore "403,406,429,503,999" --url-ignore "#" --file-ignore "/reports/" --alt-ignore '/.*/' --url-swap "https\://presidentialinnovationfellows.gov:" _site |