31 lines
642 B
YAML
31 lines
642 B
YAML
name: The Quran
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone
|
|
uses: actions/checkout@v2
|
|
- name: Prepare environment
|
|
uses: './.github/actions/prepare-env'
|
|
- name: eslint
|
|
run: ruby -S rake lint:eslint
|
|
- name: rubocop
|
|
run: ruby -S rake lint:rubocop
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone
|
|
uses: actions/checkout@v2
|
|
- name: Prepare environment
|
|
uses: './.github/actions/prepare-env'
|
|
- name: nanoc
|
|
run:
|
|
- source .env.sample
|
|
- ruby -S rake build
|