Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions .github/workflows/validate-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

- uses: actions/setup-node@v4.4.0
- name: Install pnpm
uses: pnpm/action-setup@v4.1.0
with:
node-version-file: "app/.nvmrc"
package_json_file: "app/package.json"

- uses: actions/cache@v4.2.3
id: node-modules-cache
- uses: actions/setup-node@v4.1.0
with:
path: app/node_modules
key: ${{ runner.os }}-${{ hashFiles('app/.nvmrc', 'app/package-lock.json', 'app/prisma/prisma.schema') }}
node-version-file: "app/.nvmrc"
cache: 'pnpm'
cache-dependency-path: 'app/pnpm-lock.yaml'

- name: Install dependencies
run: npm ci
run: pnpm install
working-directory: app
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- name: Lint
run: npm run lint
run: pnpm run lint
working-directory: app
continue-on-error: true
env:
Expand All @@ -44,23 +44,23 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

- uses: actions/setup-node@v4.4.0
- name: Install pnpm
uses: pnpm/action-setup@v4.1.0
with:
node-version-file: "app/.nvmrc"
package_json_file: "app/package.json"

- uses: actions/cache@v4.2.3
id: node-modules-cache
- uses: actions/setup-node@v4.1.0
with:
path: app/node_modules
key: ${{ runner.os }}-${{ hashFiles('app/.nvmrc', 'app/package-lock.json', 'app/prisma/prisma.schema') }}
node-version-file: "app/.nvmrc"
cache: 'pnpm'
cache-dependency-path: 'app/pnpm-lock.yaml'

- name: Install dependencies
run: npm ci
run: pnpm install
working-directory: app
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- name: Prettier
run: npx prettier --check .
run: pnpm exec prettier --check .
working-directory: app
continue-on-error: true

Expand All @@ -70,21 +70,21 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

- uses: actions/setup-node@v4.4.0
- name: Install pnpm
uses: pnpm/action-setup@v4.1.0
with:
node-version-file: "app/.nvmrc"
package_json_file: "app/package.json"

- uses: actions/cache@v4.2.3
id: node-modules-cache
- uses: actions/setup-node@v4.1.0
with:
path: app/node_modules
key: ${{ runner.os }}-${{ hashFiles('app/.nvmrc', 'app/package-lock.json', 'app/prisma/prisma.schema') }}
node-version-file: "app/.nvmrc"
cache: 'pnpm'
cache-dependency-path: 'app/pnpm-lock.yaml'

- name: Install dependencies
run: npm ci
run: pnpm install
working-directory: app
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- name: Test
run: npm run test
run: pnpm run test
working-directory: app
4 changes: 2 additions & 2 deletions app/.devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ set -e
# Make sure the node user can write to the node_modules directory which is mounted as named volume (see docker-compose.yml)
sudo chown node:node node_modules

npm ci
pnpm install

# After a `git clone` the `.env` won't exist. When you start the container from an existing local project, the `.env` may already exist.
if [ -e .env ]; then
npx prisma migrate dev
pnpm exec prisma migrate dev
else
echo "Skipping database migration due to missing .env file"
fi
1 change: 1 addition & 0 deletions app/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion app/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"],
"runtimeVersion": "22.14.0",
"skipFiles": ["<node_internals>/**"],
Expand Down
2 changes: 1 addition & 1 deletion app/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "npm run lint",
"label": "pnpm run lint",
"type": "npm",
"script": "lint",
"problemMatcher": ["$eslint-stylish"]
Expand Down
Loading
Loading