[CS2103T-W16-2] FoodRem #53
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: Check all links on website are valid | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
check-links: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@main | |
- name: Set up PATH | |
run: echo "$HOME/.gem/ruby/2.7.0/bin" >> $GITHUB_PATH | |
- name: Set up server dependencies | |
working-directory: ${{ github.workspace }}/docs | |
run: gem install --user-install bundler && bundle install | |
- name: Set up checker dependencies | |
working-directory: ${{ github.workspace }}/cli-test/linkchecker | |
run: npm install | |
- name: Set up server and check all links are valid | |
working-directory: ${{ github.workspace }}/cli-test/linkchecker | |
run: python serve-and-check.py |