2023-01-05 23:11:57 +01:00
|
|
|
name: The Quran
|
2022-11-19 21:55:55 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
2023-03-10 12:55:39 +01:00
|
|
|
env:
|
|
|
|
SASS_PATH: ./src/css/
|
|
|
|
|
2022-11-19 21:55:55 +01:00
|
|
|
jobs:
|
2023-01-05 04:20:47 +01:00
|
|
|
lint:
|
2022-11-19 21:55:55 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Prepare environment
|
|
|
|
uses: './.github/actions/prepare-env'
|
|
|
|
- name: eslint
|
2023-07-25 19:25:26 +02:00
|
|
|
run: npm exec eslint -- src/js/
|
2022-11-19 21:55:55 +01:00
|
|
|
- name: rubocop
|
2023-07-25 19:25:26 +02:00
|
|
|
run: bundle exec rubocop
|
2023-07-13 18:38:43 +02:00
|
|
|
prettier:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Prepare environment
|
|
|
|
uses: './.github/actions/prepare-env'
|
|
|
|
- name: prettier
|
2023-07-25 19:25:26 +02:00
|
|
|
run: npm exec prettier -- --check src/js/
|
2022-11-19 21:55:55 +01:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Clone
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Prepare environment
|
|
|
|
uses: './.github/actions/prepare-env'
|
2023-10-08 00:07:34 +02:00
|
|
|
- name: Add HTMLTidy
|
|
|
|
run: sudo apt-get install tidy
|
2022-11-19 21:55:55 +01:00
|
|
|
- name: nanoc
|
2023-03-21 07:36:29 +01:00
|
|
|
run: bundle exec rake build
|