You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
name: package-manager-ci
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '*.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- '*.md'
|
|
jobs:
|
|
pnpm:
|
|
name: pnpm package manager on ${{ matrix.node-version }} ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
node-version: [14, 16, 18]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Use pnpm
|
|
uses: pnpm/action-setup@v2.2.2
|
|
with:
|
|
version: ^6.0.0
|
|
- name: Install dependancies
|
|
run: pnpm install
|
|
- name: Tests
|
|
shell: bash
|
|
run: pnpm run test:ci
|
|
|
|
yarn-pnp:
|
|
name: yarn-pnp package manager on ${{ matrix.node-version }} ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
node-version: [14, 16, 18]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Use yarn
|
|
run: |
|
|
npm install -g yarn
|
|
yarn set version berry
|
|
echo "nodeLinker: pnp" >> .yarnrc.yml
|
|
echo "pnpMode: loose" >> .yarnrc.yml
|
|
echo "pnpEnableEsmLoader: false" >> .yarnrc.yml
|
|
yarn add -D pino-elasticsearch@^6.0.0
|
|
yarn install
|
|
env:
|
|
# needed due the yarn.lock file in repository's .gitignore
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
|
- name: Tests
|
|
shell: bash
|
|
run: yarn run test:yarn
|