-
Notifications
You must be signed in to change notification settings - Fork 26
70 lines (54 loc) · 1.5 KB
/
build_and_test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build and test with Rake
on: [push]
# env:
# NOKOGIRI_USE_SYSTEM_LIBRARIES: true # speeds up installation of html-proofer
jobs:
build:
# Disable build step since it's old and not working
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: actions/cache@v1
id: gem-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --deployment
- name: Lint
run: |
bundle exec mdl ./ -r ~MD004 -i -g
- name: Build and test with Rake
run: |
bundle exec "rake test"
validate-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.22.1
uses: actions/setup-node@v2
with:
node-version: "12.22.1"
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
with:
path: .scripts/doctor/node_modules
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
- name: Install dependencies
run: |
cd .scripts/doctor
npm i
- name: Validate
run: |
cd .scripts/doctor
npm start