al-quran.reflectslight.io/.github/workflows/al-quran.yml
0x1eef 6e1a7aec51 Add Nanoc::Filters::Tidy
Add a nanoc filter that runs HTML content through
[tidy-html](https://github.com/htacg/tidy-html5).

The content that is first run through ERB is often indented
incorrectly and inconsistently, and 'tidy' can fix that for us.
2023-10-07 19:29:52 -03:00

43 lines
940 B
YAML

name: The Quran
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SASS_PATH: ./src/css/
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Prepare environment
uses: './.github/actions/prepare-env'
- name: eslint
run: npm exec eslint -- src/js/
- name: rubocop
run: bundle exec rubocop
prettier:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Prepare environment
uses: './.github/actions/prepare-env'
- name: prettier
run: npm exec prettier -- --check src/js/
build:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Prepare environment
uses: './.github/actions/prepare-env'
- name: Add HTMLTidy
run: sudo apt-get install tidy
- name: nanoc
run: bundle exec rake build