forked from masa0221/hugo-theme-geppaku
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 811 Bytes
/
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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx stylelint '**/*.css'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.132.2'
extended: false
- name: Build
run: |
export BASE_URL="https://koooge.github.io/hugo-theme-geppaku/"
hugo --gc --minify --configDir ./exampleSite/config --config ./exampleSite/config/test/config.toml --themesDir ./ --layoutDir ./layouts --contentDir ./exampleSite/content --baseURL "${BASE_URL}"