-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (36 loc) · 991 Bytes
/
pr.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
name: Check builds for pull requests
on:
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: xt0rted/markdownlint-problem-matcher@v1
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install node modules
run: yarn
- name: Lint files
run: yarn lint
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.112.7
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Checkout
uses: actions/checkout@v3
- name: Build with Hugo
run: |
hugo mod get -u
hugo --debug