ci: add test for yarn & pnpm

This commit is contained in:
MDLeom 2022-11-07 08:53:21 +00:00
parent 591b1d8713
commit 85b8c7fa49
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
1 changed files with 25 additions and 0 deletions

25
.github/workflows/pkg-mgr.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Package Manager
on: [push, pull_request]
jobs:
tester:
runs-on: ubuntu-latest
strategy:
matrix:
pkg-mgr: [yarn, pnpm]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install package manager
run: npm install --global ${{ matrix.pkg-mgr }}
- name: Install Dependencies
run: ${{ matrix.pkg-mgr }} install
- name: Test
run: ${{ matrix.pkg-mgr }} run test
env:
CI: true