Add "rake ci"
This commit is contained in:
parent
ce3a3f9690
commit
96bf486ad2
4 changed files with 13 additions and 25 deletions
26
.github/workflows/al-quran.yml
vendored
26
.github/workflows/al-quran.yml
vendored
|
@ -17,27 +17,5 @@ jobs:
|
|||
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: rake nanoc:build
|
||||
- name: ci
|
||||
run: rake ci
|
||||
|
|
|
@ -14,6 +14,7 @@ end
|
|||
load "rake/tasks/format.rake"
|
||||
load "rake/tasks/nanoc.rake"
|
||||
load "rake/tasks/t.rake"
|
||||
load "rake/tasks/ci.rake"
|
||||
|
||||
desc "Serve the website on localhost"
|
||||
task :server, [:protocol] do |_t, args|
|
||||
|
|
9
rake/tasks/ci.rake
Normal file
9
rake/tasks/ci.rake
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
desc "Run CI tasks"
|
||||
task :ci do
|
||||
sh "bundle exec rubocop"
|
||||
sh "npm exec eslint -- src/js/"
|
||||
sh "npm exec prettier -- --check src/js/"
|
||||
Bundler.with_original_env { sh "rake nanoc:clean nanoc:build" }
|
||||
end
|
|
@ -25,7 +25,7 @@ export function Stream({ locale, surah, stream, endOfStream, isPaused, t }: Prop
|
|||
className={classNames(
|
||||
"body stream scroll-y list-none p-0 m-0 h-5/6",
|
||||
...className,
|
||||
{"mt-4": ltr, "mt-6": rtl}
|
||||
{ "mt-4": ltr, "mt-6": rtl },
|
||||
)}
|
||||
ref={ref}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue