Skip to content

chore(release): 1.2.2 #305

chore(release): 1.2.2

chore(release): 1.2.2 #305

Workflow file for this run

name: Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 10, Col: 3): Unexpected value 'content'
on:
push:
branches:
- main
pull_request:
permissions:
content: read
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
nodes: ${{ steps.nodes.outputs.nodes }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- name: Setup Node Version Matrix
id: nodes
run: |
NODES=$(npx -y @pkgjs/nv ls supported | jq '. | .version' | paste -sd "," -)
echo "nodes=[${NODES}]" >> $GITHUB_OUTPUT
lint:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v6
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
- run: npm i
- run: npm run lint
test:
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
node-version: ${{ fromJson(needs.setup.outputs.nodes) }}
steps:
- uses: actions/checkout@v6
- name: Setup git user
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: npm it