Skip to content

Commit

Permalink
Merge pull request #552 from tobysmith568/ts/switch-to-pnpm
Browse files Browse the repository at this point in the history
Switch to pnpm
  • Loading branch information
tobysmith568 authored Dec 17, 2024
2 parents 73acf7a + fd33dbc commit e19f140
Show file tree
Hide file tree
Showing 6 changed files with 10,764 additions and 28,192 deletions.
74 changes: 22 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,37 @@ on:
workflow_call:
workflow_dispatch:

defaults:
run:
shell: pwsh

jobs:
lint:
name: Lint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Checkout
uses: tobysmith568/actions/.github/actions/checkout-pnpm-project@main

- name: Run ESLint
run: npx eslint ./src --max-warnings 0
run: pnpm eslint ./src --max-warnings 0

- name: Run Prettier
run: npx prettier --check .
run: pnpm prettier --check .

build:
name: Build

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Checkout
uses: tobysmith568/actions/.github/actions/checkout-pnpm-project@main

- name: Build
run: npm run build
run: pnpm run build

- name: Upload Build
uses: actions/upload-artifact@v4
Expand All @@ -72,19 +60,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Checkout
uses: tobysmith568/actions/.github/actions/checkout-pnpm-project@main

- name: Run Unit Tests
run: npm run test:ci
run: pnpm run test:ci

- name: Codecov
uses: codecov/codecov-action@v5.1.1
Expand All @@ -98,19 +78,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Checkout
uses: tobysmith568/actions/.github/actions/checkout-pnpm-project@main

- name: Check Licenses
run: npx license-cop
run: pnpm license-cop

e2e:
needs:
Expand All @@ -130,13 +102,11 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Checkout
uses: tobysmith568/actions/.github/actions/checkout-pnpm-project@main

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Cypress
run: pnpm exec cypress install

- name: Download Build
uses: actions/download-artifact@v4
Expand All @@ -147,7 +117,7 @@ jobs:
- name: Run E2E tests
uses: cypress-io/github-action@v6
with:
start: npx http-server ./out -p 3000
start: pnpm http-server ./out -p 3000
browser: ${{ matrix.browser.value }}
wait-on: http://localhost:3000

Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
Loading

0 comments on commit e19f140

Please sign in to comment.