ci: use pnpm/action-setup in actions

This commit is contained in:
liyasthomas
2022-06-08 12:34:03 +05:30
parent c46bc40bcb
commit e5e44b889f
2 changed files with 11 additions and 8 deletions

View File

@@ -12,11 +12,11 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install pnpm - name: Setup and run pnpm install
run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6 uses: pnpm/action-setup@v2.2.2
with:
- name: Install Dependencies version: 7
run: pnpm install run_install: true
- name: Setup Environment - name: Setup Environment
run: mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env run: mv packages/hoppscotch-app/.env.example packages/hoppscotch-app/.env

View File

@@ -17,12 +17,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
- name: Install pnpm - name: Setup and run pnpm install
run: curl -f https://get.pnpm.io/v6.14.js | node - add --global pnpm@6 uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: true
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: pnpm cache: pnpm
- name: Run tests - name: Run tests
run: pnpm i && pnpm -r test run: pnpm test