Skip to content

Commit

Permalink
update ci to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis committed Jul 2, 2024
1 parent 18f545b commit c95690d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -34,34 +38,42 @@ 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"
runs-on: ubuntu-latest
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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c95690d

Please sign in to comment.