Skip to content

Commit 5694745

Browse files
Merge pull request #10 from wiremock/ci
Add CI for the repository
2 parents 0135a62 + 8c7d467 commit 5694745

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
submodules: "true"
18+
19+
- name: Setup Hugo
20+
uses: peaceiris/actions-hugo@v2
21+
with:
22+
hugo-version: '0.110.0'
23+
# extended: true
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '18'
29+
cache: 'npm'
30+
# The action defaults to search for the dependency file (package-lock.json,
31+
# npm-shrinkwrap.json or yarn.lock) in the repository root, and uses its
32+
# hash as a part of the cache key.
33+
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data
34+
cache-dependency-path: '**/package-lock.json'
35+
36+
- name: Install PostCSS
37+
run: npm install postcss-cli
38+
39+
- name: Build
40+
run: hugo --minify
41+
42+
# TODO: Uncomment when cleaned up
43+
# - name: Validate HTML and links
44+
# uses: anishathalye/proof-html@v2
45+
# with:
46+
# directory: ./_site
47+
# enforce_https: false

0 commit comments

Comments
 (0)