From c95690d69cc31013e263b8ec6f3136e76cb2d7b3 Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Tue, 2 Jul 2024 17:11:38 -0400 Subject: [PATCH] update ci to use pnpm --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++------------- .github/workflows/release.yml | 6 ++--- 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 759a17d5..8e753e44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,16 +12,20 @@ jobs: timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.x - cache: yarn + cache: pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 8 - name: Install Dependencies - run: yarn install --frozen-lockfile + run: pnpm install - name: Lint - run: yarn lint + run: pnpm run lint test: name: "Test" @@ -34,16 +38,20 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: yarn + cache: pnpm + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 8 - name: Install Dependencies - run: yarn install --frozen-lockfile + run: pnpm install - name: Run Tests - run: yarn test + run: pnpm run test acceptance-test: name: "Acceptance test" @@ -51,17 +59,21 @@ jobs: timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 - cache: yarn + cache: pnpm - - name: Install dependencies - run: yarn install --frozen-lockfile - shell: bash + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 8 + + - name: Install Dependencies + run: pnpm install - name: Build local image uses: ./.github/actions/build-pass-ui diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 989d6436..cbb2560f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,11 +27,11 @@ jobs: git config user.name ${{ github.actor }} git config user.email "${{ github.actor }}@users.noreply.github.com" - - name: Setup Node & Yarn - uses: actions/setup-node@v3 + - name: Setup Node & pnpm + uses: actions/setup-node@v4 with: node-version: 18 - cache: 'yarn' + cache: pnpm - name: Update project version run: |