docs: update everything around the action #67
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / testInvalid workflow file
|
||
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 |