Skip to content

Commit 7d45207

Browse files
committed
chore: update package dependencies and improve Playwright workflow
- Upgraded cssnano from 7.0.6 to 7.1.1 and dotenv from 16.4.7 to 16.6.1 in package.json and pnpm-lock.yaml for better performance and security. - Enhanced Playwright workflow to use pnpm for dependency installation and caching, improving build efficiency.
1 parent 6c2d43e commit 7d45207

3 files changed

Lines changed: 148 additions & 143 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
name: 🧪 Playwright End To End (e2e) Tests Workflow
2-
3-
on:
4-
# Runs on pushes targeting the default branch
5-
push:
6-
branches:
7-
- main
8-
9-
# Allows you to run this workflow manually from the Actions tab
10-
workflow_dispatch:
11-
12-
jobs:
13-
tests_e2e:
14-
name: Run end-to-end tests for live website
15-
runs-on: ubuntu-latest
16-
env:
17-
BASE_URL_TESTING: ${{ vars.BASE_URL_TESTING }}
18-
REUSE_SERVER: 'true'
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
22-
- name: Install dependencies
23-
run: npm ci
24-
- name: Install playwright browsers
25-
run: npx playwright install --with-deps
26-
- name: Run tests
27-
run: npx playwright test
1+
name: 🧪 Playwright End To End (e2e) Tests Workflow
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches:
7+
- main
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
tests_e2e:
14+
name: Run end-to-end tests for live website
15+
runs-on: ubuntu-latest
16+
env:
17+
BASE_URL_TESTING: ${{ vars.BASE_URL_TESTING }}
18+
REUSE_SERVER: 'true'
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
24+
- uses: actions/setup-node@v3
25+
with:
26+
cache: 'pnpm'
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
- name: Install playwright browsers
30+
run: pnpm exec playwright install --with-deps
31+
- name: Run tests
32+
run: pnpm exec playwright test

package.json

Lines changed: 114 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,114 @@
1-
{
2-
"name": "@gethinode/hinode",
3-
"version": "0.27.29",
4-
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
5-
"keywords": [
6-
"hugo",
7-
"theme",
8-
"bootstrap",
9-
"responsive",
10-
"front-end",
11-
"blog",
12-
"documentation"
13-
],
14-
"main": "index.js",
15-
"publishConfig": {
16-
"access": "public",
17-
"registry": "https://registry.npmjs.org/"
18-
},
19-
"scripts": {
20-
"prestart": "npm run -s mod:vendor",
21-
"start": "hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings",
22-
"start:example": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings -s exampleSite",
23-
"start:prod": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings --minify -e production",
24-
"start:example:prod": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings --minify -e production -s exampleSite",
25-
"prebuild": "npm run clean:public && npm run -s mod:vendor",
26-
"build": "hugo --gc --minify",
27-
"build:cache": "npm run -s prebuild && hugo config | grep cachedir && hugo --gc --minify -e ci",
28-
"build:example": "npm run -s prebuild && hugo --gc --minify -s exampleSite",
29-
"build:example:ci": "npm run -s prebuild && hugo --gc --minify -s exampleSite -e ci",
30-
"build:debug": "hugo -e debug --debug",
31-
"build:headers": "hugo --renderSegments headers -d prebuild && cpy prebuild/server.toml config/_default/ --flat",
32-
"build:example:headers": "hugo -s exampleSite --renderSegments headers -d prebuild && cpy exampleSite/prebuild/netlify.toml ./ --flat && cpy exampleSite/prebuild/server.toml exampleSite/config/_default/ --flat",
33-
"build:preview": "npm run build -D -F",
34-
"clean:public": "rimraf public exampleSite/public",
35-
"clean:install": "rimraf package-lock.json node_modules",
36-
"lint": "npm-run-all lint:**",
37-
"lint:fix": "npm-run-all fixlint:**",
38-
"lint:scripts": "eslint assets/js --no-error-on-unmatched-pattern",
39-
"fixlint:scripts": "eslint assets/js --no-error-on-unmatched-pattern --fix",
40-
"lint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\" --allow-empty-input",
41-
"fixlint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\" --allow-empty-input --fix",
42-
"lint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\"",
43-
"fixlint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\" --fix",
44-
"mod:clean": "hugo mod clean",
45-
"mod:update": "rimraf _vendor && hugo mod get -u ./... && npm run -s mod:vendor && npm run -s mod:tidy",
46-
"mod:tidy": "hugo mod tidy",
47-
"mod:vendor": "rimraf _vendor && hugo mod vendor",
48-
"test": "npm run -s lint",
49-
"env": "hugo env",
50-
"precheck": "npm version",
51-
"check": "hugo version",
52-
"create:syntax": "npm-run-all update:syntax:**",
53-
"update:syntax:light1": "hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
54-
"update:syntax:light2": "replace-in-files --string=\"#0086b3\" --replacement=\"#006b8f\" ./assets/scss/components/_syntax-light.scss",
55-
"update:syntax:light3": "replace-in-files --string=\"#009999\" --replacement=\"#007a7a\" ./assets/scss/components/_syntax-light.scss",
56-
"update:syntax:light4": "replace-in-files --string=\"#999988\" --replacement=\"#6d6d5d\" ./assets/scss/components/_syntax-light.scss",
57-
"update:syntax:dark1": "hugo gen chromastyles --style=github-dark > ./assets/scss/components/_syntax-dark.scss",
58-
"update:syntax:dark2": "replace-in-files --string=\"#ffffcc\" --replacement=\"#373700\" ./assets/scss/components/_syntax-dark.scss",
59-
"update:syntax:dark3": "replace-in-files --string=\"#8b949e\" --replacement=\"#979fa8\" ./assets/scss/components/_syntax-dark.scss",
60-
"update:syntax:dark4": "replace-in-files --string=\".na { }\" --replacement=\".na { color: #00cccc }\" ./assets/scss/components/_syntax-dark.scss",
61-
"update:syntax:dark5": "replace-in-files --string=\".nb { }\" --replacement=\".nb { color: #00a2d8 }\" ./assets/scss/components/_syntax-dark.scss",
62-
"update:syntax:dark6": "replace-in-files --string=\"#6e7681\" --replacement=\"#999fa8\" ./assets/scss/components/_syntax-dark.scss",
63-
"upgrade": "npx npm-check-updates -u && npm run -s mod:update"
64-
},
65-
"repository": {
66-
"type": "git",
67-
"url": "git+https://github.com/gethinode/hinode.git"
68-
},
69-
"author": "Mark Dumay",
70-
"license": "MIT",
71-
"bugs": {
72-
"url": "https://github.com/gethinode/hinode/issues"
73-
},
74-
"homepage": "https://gethinode.com",
75-
"dependencies": {
76-
"@fullhuman/postcss-purgecss": "^7.0.2",
77-
"autoprefixer": "^10.4.21",
78-
"cssnano": "^7.0.6",
79-
"cssnano-preset-advanced": "^7.0.9",
80-
"dotenv": "^16.4.7",
81-
"hugo-bin": "0.141.2",
82-
"purgecss-whitelister": "^2.4.0"
83-
},
84-
"devDependencies": {
85-
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
86-
"@playwright/test": "^1.50.1",
87-
"@types/node": "^22.13.5",
88-
"cpy-cli": "^5.0.0",
89-
"eslint": "^9.21.0",
90-
"eslint-plugin-markdown": "^5.1.0",
91-
"eslint-plugin-yaml": "^1.0.3",
92-
"markdownlint-cli2": "^0.17.2",
93-
"neostandard": "^0.12.1",
94-
"netlify-plugin-hugo-cache-resources": "^0.2.1",
95-
"npm-run-all": "^4.1.5",
96-
"postcss-cli": "^11.0.0",
97-
"prettier-plugin-go-template": "^0.0.15",
98-
"replace-in-files-cli": "^3.0.0",
99-
"rimraf": "^6.0.1",
100-
"shx": "^0.3.4",
101-
"stylelint": "^16.14.1",
102-
"stylelint-config-standard": "^37.0.0",
103-
"stylelint-config-standard-scss": "^14.0.0"
104-
},
105-
"optionalDependencies": {
106-
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
107-
"fsevents": "^2.3.3",
108-
"netlify-plugin-hugo-cache-resources": "^0.2.1"
109-
},
110-
"hugo-bin": {
111-
"buildTags": "extended"
112-
},
113-
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a"
114-
}
1+
{
2+
"name": "@gethinode/hinode",
3+
"version": "0.27.29",
4+
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
5+
"keywords": [
6+
"hugo",
7+
"theme",
8+
"bootstrap",
9+
"responsive",
10+
"front-end",
11+
"blog",
12+
"documentation"
13+
],
14+
"main": "index.js",
15+
"publishConfig": {
16+
"access": "public",
17+
"registry": "https://registry.npmjs.org/"
18+
},
19+
"scripts": {
20+
"prestart": "npm run -s mod:vendor",
21+
"start": "hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings",
22+
"start:example": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings -s exampleSite",
23+
"start:prod": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings --minify -e production",
24+
"start:example:prod": "npm run -s prestart && hugo server --bind=0.0.0.0 --disableFastRender --printI18nWarnings --minify -e production -s exampleSite",
25+
"prebuild": "npm run clean:public && npm run -s mod:vendor",
26+
"build": "hugo --gc --minify",
27+
"build:cache": "npm run -s prebuild && hugo config | grep cachedir && hugo --gc --minify -e ci",
28+
"build:example": "npm run -s prebuild && hugo --gc --minify -s exampleSite",
29+
"build:example:ci": "npm run -s prebuild && hugo --gc --minify -s exampleSite -e ci",
30+
"build:debug": "hugo -e debug --debug",
31+
"build:headers": "hugo --renderSegments headers -d prebuild && cpy prebuild/server.toml config/_default/ --flat",
32+
"build:example:headers": "hugo -s exampleSite --renderSegments headers -d prebuild && cpy exampleSite/prebuild/netlify.toml ./ --flat && cpy exampleSite/prebuild/server.toml exampleSite/config/_default/ --flat",
33+
"build:preview": "npm run build -D -F",
34+
"clean:public": "rimraf public exampleSite/public",
35+
"clean:install": "rimraf package-lock.json node_modules",
36+
"lint": "npm-run-all lint:**",
37+
"lint:fix": "npm-run-all fixlint:**",
38+
"lint:scripts": "eslint assets/js --no-error-on-unmatched-pattern",
39+
"fixlint:scripts": "eslint assets/js --no-error-on-unmatched-pattern --fix",
40+
"lint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\" --allow-empty-input",
41+
"fixlint:styles": "stylelint \"assets/scss/**/*.{css,sass,scss,sss,less}\" --allow-empty-input --fix",
42+
"lint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\"",
43+
"fixlint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\" --fix",
44+
"mod:clean": "hugo mod clean",
45+
"mod:update": "rimraf _vendor && hugo mod get -u ./... && npm run -s mod:vendor && npm run -s mod:tidy",
46+
"mod:tidy": "hugo mod tidy",
47+
"mod:vendor": "rimraf _vendor && hugo mod vendor",
48+
"test": "npm run -s lint",
49+
"env": "hugo env",
50+
"precheck": "npm version",
51+
"check": "hugo version",
52+
"create:syntax": "npm-run-all update:syntax:**",
53+
"update:syntax:light1": "hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
54+
"update:syntax:light2": "replace-in-files --string=\"#0086b3\" --replacement=\"#006b8f\" ./assets/scss/components/_syntax-light.scss",
55+
"update:syntax:light3": "replace-in-files --string=\"#009999\" --replacement=\"#007a7a\" ./assets/scss/components/_syntax-light.scss",
56+
"update:syntax:light4": "replace-in-files --string=\"#999988\" --replacement=\"#6d6d5d\" ./assets/scss/components/_syntax-light.scss",
57+
"update:syntax:dark1": "hugo gen chromastyles --style=github-dark > ./assets/scss/components/_syntax-dark.scss",
58+
"update:syntax:dark2": "replace-in-files --string=\"#ffffcc\" --replacement=\"#373700\" ./assets/scss/components/_syntax-dark.scss",
59+
"update:syntax:dark3": "replace-in-files --string=\"#8b949e\" --replacement=\"#979fa8\" ./assets/scss/components/_syntax-dark.scss",
60+
"update:syntax:dark4": "replace-in-files --string=\".na { }\" --replacement=\".na { color: #00cccc }\" ./assets/scss/components/_syntax-dark.scss",
61+
"update:syntax:dark5": "replace-in-files --string=\".nb { }\" --replacement=\".nb { color: #00a2d8 }\" ./assets/scss/components/_syntax-dark.scss",
62+
"update:syntax:dark6": "replace-in-files --string=\"#6e7681\" --replacement=\"#999fa8\" ./assets/scss/components/_syntax-dark.scss",
63+
"upgrade": "npx npm-check-updates -u && npm run -s mod:update"
64+
},
65+
"repository": {
66+
"type": "git",
67+
"url": "git+https://github.com/gethinode/hinode.git"
68+
},
69+
"author": "Mark Dumay",
70+
"license": "MIT",
71+
"bugs": {
72+
"url": "https://github.com/gethinode/hinode/issues"
73+
},
74+
"homepage": "https://gethinode.com",
75+
"dependencies": {
76+
"@fullhuman/postcss-purgecss": "^7.0.2",
77+
"autoprefixer": "^10.4.21",
78+
"cssnano": "7.1.1",
79+
"cssnano-preset-advanced": "^7.0.9",
80+
"dotenv": "16.6.1",
81+
"hugo-bin": "0.141.2",
82+
"purgecss-whitelister": "^2.4.0"
83+
},
84+
"devDependencies": {
85+
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
86+
"@playwright/test": "^1.50.1",
87+
"@types/node": "^22.13.5",
88+
"cpy-cli": "^5.0.0",
89+
"eslint": "^9.21.0",
90+
"eslint-plugin-markdown": "^5.1.0",
91+
"eslint-plugin-yaml": "^1.0.3",
92+
"markdownlint-cli2": "^0.17.2",
93+
"neostandard": "^0.12.1",
94+
"netlify-plugin-hugo-cache-resources": "^0.2.1",
95+
"npm-run-all": "^4.1.5",
96+
"postcss-cli": "^11.0.0",
97+
"prettier-plugin-go-template": "^0.0.15",
98+
"replace-in-files-cli": "^3.0.0",
99+
"rimraf": "^6.0.1",
100+
"shx": "^0.3.4",
101+
"stylelint": "^16.14.1",
102+
"stylelint-config-standard": "^37.0.0",
103+
"stylelint-config-standard-scss": "^14.0.0"
104+
},
105+
"optionalDependencies": {
106+
"@gethinode/netlify-plugin-dartsass": "^0.3.0",
107+
"fsevents": "^2.3.3",
108+
"netlify-plugin-hugo-cache-resources": "^0.2.1"
109+
},
110+
"hugo-bin": {
111+
"buildTags": "extended"
112+
},
113+
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a"
114+
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)