Skip to content

docs: update everything around the action #67

docs: update everything around the action

docs: update everything around the action #67

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20, 22]
pnpm: [8, 9]
steps:
- uses: actions/checkout@v4
- uses: ./
with:
node: ${{ matrix.node }}
pnpm: ${{ matrix.pnpm }}
cwd: 'test'
install-ignore-scripts: true
- name: check version
id: check-version
run: |
echo "NODE_VERSION=$(node -v)" >> $GITHUB_OUTPUT
echo "MATRIX_NODE_VERSION=v${{ matrix.node }}" >> $GITHUB_OUTPUT
- name: fail on wrong version (${{ steps.check-version.outputs.VERSION }})
if: ${{ steps.check-version.outputs.NODE_VERSION != streps.check-version-outputs.MATRIX_NODE_VERSION }}

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

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 29, Col: 13): Unrecognized named-value: 'streps'. Located at position 45 within expression: steps.check-version.outputs.NODE_VERSION != streps.check-version-outputs.MATRIX_NODE_VERSION
run: exit 1
test-version-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
cwd: 'test'
node-file: '.node-version'
install-ignore-scripts: true
- name: check version
id: check-version
run: echo "VERSION=$(node -v)" >> $GITHUB_OUTPUT
- name: fail on wrong version (${{ steps.check-version.outputs.VERSION }})
if: ${{ steps.check-version.outputs.VERSION != 'v22.0.0' }}
run: exit 1