forked from home-assistant/home-assistant.io
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (83 loc) · 2.37 KB
/
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: home-assistant.io Test
on: [push, pull_request]
jobs:
markdown-lint:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/checkout@v2
- name: Setting up Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: 12.x
- name: Setup NPM cache
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-
- name: Install dependencies
run: npm install
env:
CI: true
- name: Run remark lint
run: npm run markdown:lint
textlint:
name: Lint Text
runs-on: ubuntu-latest
steps:
- name: Check out files from GitHub
uses: actions/checkout@v2
- name: Setting up Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: 12.x
- name: Setup NPM cache
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-
- name: Install dependencies
run: npm install
env:
CI: true
- name: Run textlint
run: npm run textlint
build:
name: Jekyll build
runs-on: ubuntu-latest
needs: [markdown-lint]
steps:
- name: Check out files from GitHub
uses: actions/checkout@v2
- name: Setting up Ruby 2.6
uses: actions/[email protected]
with:
ruby-version: 2.6
- name: Setup Ruby Gems cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
gems-
- name: Installing dependencies
run: |
gem install bundler -v 2.0.1
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Setting up Jekyll cache
uses: actions/cache@v2
with:
path: source/.jekyll-cache
key: jekyll-${{ hashFiles('**/Gemfile.lock') }}-${{ hashFiles('**/_config.yml') }}
restore-keys: |
jekyll-${{ hashFiles('**/Gemfile.lock') }}-
jekyll-
- name: Building site
run: |
bundle exec rake generate