Skip to content
Open
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Check out with LF on every platform. inject-markdown writes LF, so CRLF checkouts
# (Windows) would show every injected file as changed.
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
node-version:
required: false
description: The version of Node to use.
default: "18.x"
default: "22.x"
runs:
using: "composite"
steps:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: " 🧪 Test"
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
test-node-versions:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version:
- 22.x
- 24.x
- 25.x
os:
- ubuntu-latest

include:
- os: windows-latest
node-version: 24.x

steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}

- run: npm ci --omit=dev
- run: npm test

# Ensure the repository is clean after build & test
- run: git --no-pager diff --compact-summary --exit-code

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- run: npm ci
- run: npx prettier --check .
2 changes: 1 addition & 1 deletion .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18.x
node-version: 22.x

- name: Update Root
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-inject-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 18.x
node-version: 22.x

- name: Install
run: |
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"index.js"
],
"engines": {
"node": ">=18"
"node": ">=22"
},
"dependencies": {
"inject-markdown": "^6.3.0"
Expand Down
Loading