-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (44 loc) · 1.47 KB
/
check-pull-requests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: check and build pull requests
on:
pull_request: []
jobs:
build-website:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout the Repository
uses: actions/checkout@master
- name: Setup Ruby, JRuby and TruffleRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Install GitHub Pages, Bundler, and kramdown gems
run: |
gem install bundler yaml-lint
- name: Set up caching for Bundler
uses: actions/cache@v2
with:
path: .vendor/bundle
key: gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
gems-
- name: Install & Update Ruby Gems
run: |
bundle config path .vendor/bundle
bundle install --jobs 4 --retry 3
bundle update
- name: Lint _config.yml with yaml-lint
run: |
yaml-lint _config.yml
- name: Lint pages and blog posts
run: |
yaml-lint -q -n $(find _posts -regex ".*.md\|.*html") &&\
yaml-lint -q -n $(find pages -regex ".*.md\|.*html")
- name: Run a spellchecker
run: |
sudo pip install codespell &&\
codespell --skip ".vendor,assets,*.pdf,*.png,*.jpg,*.jpeg,*.gif,*.xap,*.js,_data,_sass,.git,*.svg,*.geojson,citations.md,latam-tf.md,.jekyll-metadata,_site" --ignore-words-list "files',tawk,rouge,aci,ois" .
- name: Build site
run: make site