-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
71 lines (60 loc) · 1.85 KB
/
build-test-site.yaml
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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch any Git submodules (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
- recursive: false
args: [--frozen-lockfile]
# - name: Install JS dependencies
# run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Check for linting errors
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.136.5'
extended: true
- name: Build
run: hugo --minify
working-directory: test
# format:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# # Make sure the actual branch is checked out when running on pull requests
# ref: ${{ github.head_ref }}
#
# - name: Prettify code
# uses: creyD/[email protected]
# with:
# prettier_options: '--write blox-tailwind/*.{css,js,json,md,scss} blox-tailwind/**/*.{css,js,json,md,scss}' # Match package.json
# prettier_version: '2.2.1' # Match package.json
# commit_message: 'refactor: format code'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}