Skip to content

Commit

Permalink
🚀 pnpm
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
TheKnarf committed Feb 2, 2024
1 parent 96b436c commit c010091
Show file tree
Hide file tree
Showing 17 changed files with 14,307 additions and 16,091 deletions.
17 changes: 17 additions & 0 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Yarn Install with cache'
description: 'Doing yarn installs with proper caching'
runs:
using: 'composite'
steps:
- name: 'Setting up Node'
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
shell: bash
run: pnpm install
32 changes: 0 additions & 32 deletions .github/actions/yarn-install/action.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build And Run Frontend Tests
name: CI

on:
workflow_call:
Expand All @@ -9,7 +9,7 @@ on:
push:
paths:
- './**'
- '.github/workflows/frontend-unit-tests.yml'
- '.github/workflows/CI.yml'
- 'package.json'

concurrency:
Expand All @@ -18,7 +18,7 @@ concurrency:

jobs:
typecheck:
name: 'Typechecking and linting'
name: 'Typechecking'
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -31,18 +31,32 @@ jobs:
fetch-depth: 0

- name: 'Installing Dependencies'
uses: ./.github/actions/yarn-install
uses: ./.github/actions/install

- name: 'Doing the typecheck'
working-directory: ./client
run: yarn typecheck
run: pnpm turbo typecheck

- name: 'Running Eslint'
working-directory: ./client
run: yarn lint
linting:
name: 'Linting'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: 'Checking Out Code'
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 'Installing Dependencies'
uses: ./.github/actions/install

- name: 'Running lint'
run: pnpm turbo lint

test:
name: 'Running Unit Tests'
name: 'Tests'
runs-on: ubuntu-latest
steps:
- name: 'Checking Out Code'
Expand All @@ -51,14 +65,13 @@ jobs:
fetch-depth: 0

- name: 'Installing Dependencies'
uses: ./.github/actions/yarn-install
uses: ./.github/actions/install

- name: 'Running Unit Tests'
working-directory: ./client
run: yarn test
run: pnpm turbo test

build:
name: 'Building Static Files'
name: 'Builds'
runs-on: ubuntu-latest
steps:
- name: 'Checking Out Code'
Expand All @@ -67,8 +80,7 @@ jobs:
fetch-depth: 0

- name: 'Installing Dependencies'
uses: ./.github/actions/yarn-install
uses: ./.github/actions/install

- name: 'Building'
working-directory: ./client
run: yarn build
run: pnpm turbo build
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

- Install Docker. We recommend to use OrbStack if you're using Mac or Windows for development, on Linux you can install Docker directly.


- Install pnpm. On macOS you can do that with `brew install pnpm`.
3 changes: 3 additions & 0 deletions bff-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"@azure/app-configuration": "^1.4.1",
"@azure/identity": "^4.0.0",
"@azure/keyvault-keys": "^4.7.2",
"@types/body-parser": "^1.19.5",
"applicationinsights": "^2.9.0",
"axios": "^1.6.2",
"azure-app-configuration": "^0.0.1-security.3",
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
Expand All @@ -31,6 +33,7 @@
"scripts": {
"start": "ts-node src/index.ts",
"build": "tsc",
"typecheck": "tsc --noEmit",
"typeorm": "typeorm-ts-node-commonjs",
"typeormold": "typeorm-ts-node-commonjs -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d src/data-source.ts",
"typeorm:local": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d src/data-source.local.ts",
Expand Down
Loading

0 comments on commit c010091

Please sign in to comment.