parent
864374959e
commit
638ea4a9d6
4 changed files with 69 additions and 54 deletions
28
.gitea/workflows/lint.yaml
Normal file
28
.gitea/workflows/lint.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Linting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: cth-ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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/
|
||||
build:
|
||||
runs-on: cth-ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.1.2
|
||||
- run: |
|
||||
gem install bundler
|
||||
bundle install
|
||||
bundle exec jekyll build
|
Loading…
Add table
Add a link
Reference in a new issue