Skip to content

Commit d8c7dc3

Browse files
committed
Integrate pnpm for HTML and CSS Validation in GitHub Actions
1 parent 0e7d9da commit d8c7dc3

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/unittests.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@ jobs:
2929
with:
3030
node-version: '16'
3131

32-
# Installs HTMLHint and Stylelint
32+
# Caching pnpm dependencies
33+
- name: Cache pnpm
34+
uses: actions/cache@v3
35+
with:
36+
path: ~/.pnpm-store
37+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-
40+
41+
# Installs HTMLHint and Stylelint using pnpm
3342
- name: Install dependencies
3443
run: |
35-
npm install htmlhint stylelint stylelint-config-standard --save-dev
44+
npm install -g pnpm
45+
pnpm install htmlhint stylelint stylelint-config-standard --save-dev
3646
3747
# Runs HTML validation
3848
- name: Validate HTML

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "calimix.github.io",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC"
12+
}

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)