-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package manager CI action #1113
Changes from all commits
eadfae2
5b7a873
ca4d45c
f908660
d68e8c9
32693fe
62eed30
25771d9
043e2d1
abeaca5
f54d807
41b82b8
dc49760
2e2d6f4
3bdba23
a31da82
ae5a43f
72298d3
660b89a
a53e698
715fb85
6cde872
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,91 @@ | ||||
name: package-manager-ci | ||||
on: | ||||
push: | ||||
branches: | ||||
- main | ||||
- package-manager-load | ||||
jobs: | ||||
pnpm: | ||||
name: pnpm package manager on ${{ matrix.node-version }} ${{ matrix.os }} | ||||
runs-on: ${{ matrix.os }} | ||||
strategy: | ||||
fail-fast: false | ||||
matrix: | ||||
os: [windows-latest, ubuntu-latest] | ||||
node-version: [14] | ||||
steps: | ||||
- uses: actions/[email protected] | ||||
- name: Use Node.js ${{ matrix.node-version }} | ||||
uses: actions/[email protected] | ||||
with: | ||||
node-version: ${{ matrix.node-version }} | ||||
- name: Use pnpm | ||||
uses: pnpm/[email protected] | ||||
with: | ||||
version: ^6.0.0 | ||||
- name: Install dependancies | ||||
run: pnpm install | ||||
- name: Tests | ||||
run: pnpm run test-ci-pnpm | ||||
|
||||
yarn: | ||||
name: yarn package manager on ${{ matrix.node-version }} ${{ matrix.os }} | ||||
runs-on: ${{ matrix.os }} | ||||
strategy: | ||||
fail-fast: false | ||||
matrix: | ||||
os: [windows-latest, ubuntu-latest] | ||||
node-version: [14] | ||||
steps: | ||||
- uses: actions/[email protected] | ||||
- name: Use Node.js ${{ matrix.node-version }} | ||||
uses: actions/[email protected] | ||||
with: | ||||
node-version: ${{ matrix.node-version }} | ||||
- name: Use yarn | ||||
run: | | ||||
yarn set version berry && yarn set version 2 | ||||
echo "nodeLinker: node-modules" >> .yarnrc.yml | ||||
# see https://github.com/yarnpkg/berry/issues/2935#issuecomment-911299992 | ||||
yarn add --dev typescript@~4.3.2 | ||||
yarn install | ||||
env: | ||||
# needed due the yarn.lock file in pino's .gitignore | ||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false | ||||
- name: Tests | ||||
run: yarn run test-ci | ||||
|
||||
yarn-pnp: | ||||
name: yarn-pnp package manager on ${{ matrix.node-version }} ${{ matrix.os }} | ||||
runs-on: ${{ matrix.os }} | ||||
strategy: | ||||
fail-fast: false | ||||
matrix: | ||||
os: [windows-latest, ubuntu-latest] | ||||
node-version: [14] | ||||
steps: | ||||
- uses: actions/[email protected] | ||||
- name: Use Node.js ${{ matrix.node-version }} | ||||
uses: actions/[email protected] | ||||
with: | ||||
node-version: ${{ matrix.node-version }} | ||||
- name: Use yarn | ||||
run: | | ||||
yarn set version berry | ||||
echo 'nodeLinker: pnp | ||||
packageExtensions: | ||||
debug@*: | ||||
dependencies: | ||||
supports-color: "*" | ||||
treport@*: | ||||
dependencies: | ||||
tap-yaml: "*" | ||||
' >> .yarnrc.yml | ||||
yarn add --dev typescript@~4.3.2 | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
yarn install | ||||
yarn add --dev transport@link:./test/fixtures/transport | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant you should do this regardless of what is running and get rid of the manual symlinking There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doing the same with npm across multiple node version is not that easy. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With npm you can use the |
||||
env: | ||||
# needed due the yarn.lock file in pino's .gitignore | ||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false | ||||
- name: Tests | ||||
run: yarn run test-ci-yarn-pnp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've released the fix for this issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
To avoid this issue for future typescripts minor releases, where could we read the last working version integrated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have it documented anywhere, we try to update the patch as soon as they make a new release. Also TypeScript doesn't follow semver so their
minor
is actually amajor
releaseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this reason, the pino's maintainer may evaluate to pin the dep to
~4.4.0
so it will be dependabot to update it and trigger the new error for new minor changes