Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

full-check

full-check #152

Workflow file for this run

name: full-check
on:
schedule:
- cron: "0 0 * * 0"
jobs:
full-check-markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install markdownlint-cli
run: |
npm install
- name: Lint markdown files
run: |
npx -c 'markdownlint ./ --ignore ./vendor --ignore ./node_modules'
full-check-jekyll-build:
runs-on: ubuntu-latest
env:
JEKYLL_ENV: production
strategy:
matrix:
python-version: ['3.10']
ruby-version: ['2.7']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install pipenv
run: |
python -m pip install pipenv
- name: Install Ruby dependencies
run: |
bundle update
- name: Install Python dependencies
run: |
pipenv update
# --lsi may fail in some cases
# see: https://github.com/jekyll/classifier-reborn/issues/64
- name: Build the site
run: |
bundle exec jekyll build --config _config.yml,_config-deploy.yml --lsi ||
bundle exec jekyll build --config _config.yml,_config-deploy.yml
- name: Test (HTMLProofer with external sites)
run: |
bundle exec htmlproofer ./_site --allow-hash-href --alt-ignore "/.*/" --only-4xx --url-ignore "/twitter.com/"
- name: Test (pytest)
run: |
pipenv run python test.py pytest
- name: Deploy (Dry-Run)
uses: JamesIves/[email protected]
with:
dry-run: true
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: _site # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true # Like push force, keep only the last commit
git-config-name: #use username that pushes to master
git-config-email: <> #[email protected]