-
Notifications
You must be signed in to change notification settings - Fork 1.5k
37 lines (35 loc) · 1.05 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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
repository: hexojs/hexo-starter
- uses: actions/checkout@v3
with:
path: themes/icarus
- uses: actions/checkout@v3
with:
repository: SukkaLab/hexo-many-posts
path: source/_posts/hexo-many-posts
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: node_modules
key: npm-cache
restore-keys: npm-cache
- run: npm install
- run: >
npm install $(node -e "const deps=require('./themes/icarus/package.json').dependencies;
console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));")
- run: npm install hexo-tag-embed
- run: npx hexo config theme icarus
- run: time NODE_ENV=production npx hexo g -b