Skip to content

get-21 check auto-tests workflow #2

get-21 check auto-tests workflow

get-21 check auto-tests workflow #2

Workflow file for this run

name: Test package
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies and build
run: |
npm ci
npm run build
cp ../README.md .
cp ../LICENSE .
working-directory: ./package
- name: Test package
run: |
yarn
yarn add next@canary
yarn playwright install
yarn build
yarn test
working-directory: ./tests/nextjs-app
- name: Set summary
run: |
NEXT_VERSION=$(node -p "require('next/package.json').version")
echo "$NEXT_VERSION" >> $GITHUB_STEP_SUMMARY