-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
144 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
yarn install | ||
yarn add --dev transport@link:./test/fixtures/transport | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters