CI #147
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: | |
push: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Run weekly, 00:00 on Saturday | |
- cron: '0 0 * * 6' | |
workflow_dispatch: | |
jobs: | |
test: | |
name: cibuild.sh | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Run apt-get update | |
run: sudo apt-get update | |
- name: Set up Ruby and run bundle install | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.5.3 | |
bundler-cache: true | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: | | |
# Avoid SSL errors | |
# https://github.com/gjtorikian/html-proofer/issues/376 | |
sudo apt-get install -y libcurl4-openssl-dev | |
python -m pip install --upgrade pip | |
pip install html5validator | |
npm install -g jshint | |
- name: Cache external link check results | |
uses: actions/cache@v3 | |
with: | |
path: tmp/.htmlproofer | |
key: htmlproofer | |
- name: Run tests | |
run: ./_script/cibuild.sh |