Skip to content

Commit

Permalink
get-31 configure server context tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vordgi committed Feb 29, 2024
1 parent 75a7610 commit 552cd29
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/auto-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
npm run build
working-directory: ./package

- name: Test package
- name: Test package general
run: |
yarn
yarn add next@canary
Expand All @@ -32,8 +32,16 @@ jobs:
yarn test
working-directory: ./tests/nextjs-app

- name: Test package contexts
run: |
yarn
yarn add next@canary
yarn playwright install
yarn build
yarn test
working-directory: ./tests/server-contexts

- name: Set summary
run: |
NEXT_VERSION=$(node -p "require('next/package.json').version")
echo "$NEXT_VERSION" >> $GITHUB_STEP_SUMMARY
working-directory: ./tests/nextjs-app
11 changes: 10 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cp ../LICENSE .
working-directory: ./package

- name: Test package
- name: Test package general
run: |
yarn
yarn add next@canary
Expand All @@ -34,6 +34,15 @@ jobs:
yarn test
working-directory: ./tests/nextjs-app

- name: Test package contexts
run: |
yarn
yarn add next@canary
yarn playwright install
yarn build
yarn test
working-directory: ./tests/server-contexts

- name: Publish on main
if: "!contains(github.ref_name, 'canary')"
run: |
Expand Down

0 comments on commit 552cd29

Please sign in to comment.