Skip to content

Commit

Permalink
ci: add pnp test
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Aug 17, 2020
1 parent aa7659d commit 5a31b17
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,32 @@ jobs:

- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3

testPnp:
runs-on: ubuntu-latest
needs: build
env:
NODE_OPTIONS: '--unhandled-rejections=strict'
steps:
- uses: actions/cache@v2
id: restore-build
with:
path: ./*
key: ${{ github.sha }}
- run: |
mkdir -p ./e2e-tests/next-pnp
cp -r ./examples/with-typescript ./e2e-tests/next-pnp
cd ./e2e-tests/next-pnp
touch yarn.lock
yarn set version berry
yarn config set pnpFallbackMode none
yarn link --all --private ../..
yarn
yarn build
testsPass:
name: thank you, next
runs-on: ubuntu-latest
needs: [lint, checkPrecompiled, testAll]
needs: [lint, checkPrecompiled, testAll, testPnp]
steps:
- run: exit 0

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ coverage
test/**/out*
test/**/next-env.d.ts
.DS_Store
/e2e-tests

# Editors
**/.idea
Expand Down

0 comments on commit 5a31b17

Please sign in to comment.