Skip to content

Commit 7ad5bd4

Browse files
authored
Merge pull request #2687 from feederbox826/master
switch to pnpm, deno
2 parents feb4e7e + 36501a3 commit 7ad5bd4

File tree

11 files changed

+1630
-4540
lines changed

11 files changed

+1630
-4540
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ jobs:
3030
- name: copy develop to stable
3131
run: |
3232
cp -r _site/develop _site/stable
33+
- uses: pnpm/action-setup@v4
34+
with:
35+
package_json_file: develop/site_generator/package.json
3336
- uses: actions/setup-node@v6
3437
with:
3538
node-version: latest
3639
- name: Generate html index page
3740
run: |
3841
cd develop/site_generator
3942
npm i -g ts-node
40-
npm ci
43+
pnpm install --frozen-lockfile
4144
npm run ci-build
4245
cp -r site/* ../../_site/
4346
- uses: actions/upload-pages-artifact@v4

.github/workflows/validate.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88

99
jobs:
1010
validate:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v6
14+
- uses: denoland/setup-deno@v2
1515
with:
16-
node-version: '20.x'
17-
- run: cd ./validator && yarn install --frozen-lockfile
18-
- run: node ./validate.js --ci
16+
cache: true
17+
- run: deno -R -E ./validate.js --ci

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ Contributions are always welcome! Use the [Scraping Configuration](https://githu
8989

9090
The scrapers in this repository can be validated against a schema and checked for common errors.
9191

92-
First, install the validator's dependencies - inside the [`./validator`](./validator) folder, run: `yarn`.
92+
To run the validator, use `deno run -R=scrapers -R="validator\scraper.schema.json" validate.js` in the root of the repository.
93+
Specific scrapers can be checked using: `deno run -R=scrapers -R="validator\scraper.schema.json" scrapers/foo.yml scrapers/bar.yml`
9394

94-
Then, to run the validator, use `node validate.js` in the root of the repository.
95-
Specific scrapers can be checked using: `node validate.js scrapers/foo.yml scrapers/bar.yml`
95+
Deno asks for env and sys permissions, these seem to mostly be from [chalk](https://www.npmjs.com/package/chalk)
9696

9797
#### Docker option
98-
Instead of NodeJS being installed, Docker can be used to run the validator
98+
Instead of Deno being installed, Docker can be used to run the validator
9999

100100
```bash
101-
docker run --rm -v .:/app node:alpine /bin/sh -c "cd /app/validator && yarn install --silent && cd .. && node validate.js --ci"
101+
docker run --rm -v .:/app denoland/deno:distroless run -R=/app/ -E /app/validate.js --ci
102102
```

0 commit comments

Comments
 (0)