-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 961 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
31
32
33
34
name: Test
on:
push:
branches-ignore:
- main # tests will be launched by workflow_call from the deploy workflow
pull_request:
types: [ opened, reopened ]
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- run: npm ci
- name: Lint Markdown
run: npm run lint:markdown
- name: Lint CSS
run: npm run lint:css
- name: Lint JavaScript
run: npm run lint:js
- name: Set Hugo up
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.119.0'
extended: true # Prevent error building site: POSTCSS: failed to transform, see https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version
- name: Build with Hugo
run: npm run build
- name: Build JSDoc
run: npm run jsdoc