exlude twitter links from linkcheck #211 #394
Workflow file for this run
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: CI | |
on: | |
# Run the build for pushes and pull requests targeting main | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout and setup | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
# Install and build | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build | |
- name: Debug Linkcheck | |
run: | | |
set -o pipefail | |
yarn linkcheck | |
# Run linkcheck, propagate linkcheck failure through grep pipe | |
- name: Linkcheck | |
run: | | |
set -o pipefail | |
yarn linkcheck | grep -v "https://twitter.com" | grep "Getting links from\|BROKEN" | |
continue-on-error: false |