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.
67 lines
1.3 KiB
67 lines
1.3 KiB
name: package-manager-ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pnpm:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
# Maintenance and active LTS
|
|
node-version: [14, 16]
|
|
os: [ubuntu-18.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install with pnpm
|
|
run: |
|
|
curl -L https://unpkg.com/@pnpm/self-installer | node
|
|
pnpm install
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pnpm run test
|
|
|
|
yarn:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
# Maintenance and active LTS
|
|
node-version: [14, 16]
|
|
os: [ubuntu-18.04]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install with yarn
|
|
run: |
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
yarn install --ignore-engines
|
|
|
|
- name: Run tests
|
|
run: |
|
|
yarn run test
|