get-21 check auto-tests workflow #2
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 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 |