ci: add pnp test (#16255)
This commit is contained in:
parent
aa4b87e357
commit
2e6bc8eba4
3 changed files with 22 additions and 2 deletions
21
.github/workflows/build_test_deploy.yml
vendored
21
.github/workflows/build_test_deploy.yml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -21,6 +21,7 @@ coverage
|
|||
test/**/out*
|
||||
test/**/next-env.d.ts
|
||||
.DS_Store
|
||||
/e2e-tests
|
||||
|
||||
# Editors
|
||||
**/.idea
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue