Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 5 additions & 39 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,13 @@
---
name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
secrets:
CODECOV_TOKEN:
required: true

jobs:
build:

strategy:
matrix:
node-version: [20, 22, 24, 25]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Dependencies
run: pnpm install
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test ${{ matrix.node-version }} ${{ matrix.platform }}
run: npm run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: peggyjs/coverage
uses: cto-af/workflows/.github/workflows/node-ci.yml@main
with:
script: ci
secrets:
CODECOV_TOKEN: secrets.CODECOV_TOKEN
28 changes: 5 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,11 @@ on:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
environment: publish
publish:
uses: cto-af/workflows/.github/workflows/publish.yml@main
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm run test
- run: npm run docs
- run: npm pkg delete devDependencies scripts packageManager
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
publish_branch: gh-pages
- run: npm publish --access public --provenance
with:
docs: true
script: ci
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@
"build": "peggy -c peggy.config.js && tsc",
"docs": "typedoc",
"lint": "eslint .",
"test": "c8 node --test test/*.test.js"
"test": "c8 node --test test/*.test.js",
"ci": "npm run build && npm run lint && npm run docs && npm run test"
},
"dependencies": {
"peggy": "5.1.0",
"source-map": "0.7.6"
"peggy": "~5.1.0",
"source-map": "~0.7.6"
},
"devDependencies": {
"@peggyjs/eslint-config": "6.0.10",
"@types/node": "25.3.3",
"c8": "11.0.0",
"eslint": "10.0.2",
"typedoc": "0.28.17",
"typescript": "5.9.3"
"@peggyjs/eslint-config": "^6.0.13",
"@types/node": "^25.5.0",
"eslint": "^10.0.3",
"superc8": "~12.3.1",
"typedoc": "^0.28.17",
"typescript": "^5.9.3"
},
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.1",
"pnpm": {
"overrides": {
"typedoc@0.28.17>markdown-it": "14.1.1",
Expand Down
Loading