2024-07-12 21:06:54 -04:00
|
|
|
name: Linting
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: cth-ubuntu-latest
|
|
|
|
steps:
|
2024-07-12 21:10:22 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-12 23:01:30 -04:00
|
|
|
- uses: addnab/docker-run-action@v3
|
|
|
|
with:
|
|
|
|
image: docker.atomaka.com/mdformat:latest
|
|
|
|
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
|
|
|
|
run: |
|
|
|
|
cd ${{ github.workspace }}
|
|
|
|
mdformat --check _posts/
|
2024-07-12 21:06:54 -04:00
|
|
|
build:
|
|
|
|
runs-on: cth-ubuntu-latest
|
|
|
|
steps:
|
2024-07-12 21:10:22 -04:00
|
|
|
- uses: actions/checkout@v4
|
2024-07-12 21:12:15 -04:00
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 3.1.2
|
2024-07-12 21:10:22 -04:00
|
|
|
- run: |
|
|
|
|
gem install bundler
|
|
|
|
bundle install
|
|
|
|
bundle exec jekyll build
|