ci: add pnp test (#16255)

This commit is contained in:
Kristoffer K 2020-08-17 19:39:57 +02:00 committed by GitHub
parent aa4b87e357
commit 2e6bc8eba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

View file

@ -70,10 +70,29 @@ jobs:
- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
testYarnPnP:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--unhandled-rejections=strict'
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile --check-files
- 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 build
testsPass:
name: thank you, next
runs-on: ubuntu-latest
needs: [lint, checkPrecompiled, testAll]
needs: [lint, checkPrecompiled, testAll, testYarnPnP]
steps:
- run: exit 0

1
.gitignore vendored
View file

@ -21,6 +21,7 @@ coverage
test/**/out*
test/**/next-env.d.ts
.DS_Store
/e2e-tests
# Editors
**/.idea

View file

@ -16,7 +16,7 @@
"@types/node": "^12.12.21",
"@types/react": "^16.9.16",
"@types/react-dom": "^16.9.4",
"typescript": "3.7.3"
"typescript": "3.9.7"
},
"license": "ISC"
}