Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
9 changes: 6 additions & 3 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Lint
run: npm run lint --workspace=@worksight/${{ matrix.app }}
run: pnpm --filter @worksight/${{ matrix.app }} lint

- name: Build Docker image
run: |
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/ci-fallback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,35 @@ on:
pull_request:
branches: [main, dev]

# This workflow uses npm as a fallback if pnpm issues persist
jobs:
quality-npm:
name: Quality Checks (npm)
quality:
name: Quality Checks
runs-on: ubuntu-latest
if: false # Disabled by default, enable if pnpm CI fails
if: false # Disabled by default

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

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

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Type check
run: npm run type-check
run: pnpm type-check

- name: Lint check
run: npm run lint
run: pnpm lint

- name: Build application
run: npm run build
run: pnpm build
env:
NEXT_TELEMETRY_DISABLED: 1
13 changes: 8 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

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

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Type check
run: npm run type-check
run: pnpm type-check

- name: Lint check
run: npm run lint
run: pnpm lint

- name: Build application
run: npm run build
run: pnpm build
env:
NEXT_TELEMETRY_DISABLED: 1
22 changes: 14 additions & 8 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Build web app
run: npm run build --workspace=@worksight/web
run: pnpm --filter @worksight/web build

- name: Start application
run: |
cd apps/web
npm start &
pnpm start &
echo $! > server.pid
shell: bash

Expand All @@ -47,7 +50,7 @@ jobs:

- name: Run Lighthouse CI
run: |
npx lhci autorun --upload.target=temporary-public-storage
pnpm dlx @lhci/cli autorun --upload.target=temporary-public-storage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -66,17 +69,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Analyze bundle
run: npm run build:analyze --workspace=@worksight/web
run: pnpm --filter @worksight/web build:analyze

- name: Upload bundle analysis
uses: actions/upload-artifact@v4
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,29 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Lint ${{ matrix.app }}
run: npm run lint --workspace=${{ matrix.app }}
run: pnpm --filter ${{ matrix.app }} lint

- name: Build ${{ matrix.app }}
run: npm run build --workspace=${{ matrix.app }}
run: pnpm --filter ${{ matrix.app }} build

- name: Package ${{ matrix.app }} into ZIP
run: |
mkdir -p release/${{ matrix.app }}
cp -r apps/${{ matrix.app }}/.next release/${{ matrix.app }}/
cp -r apps/${{ matrix.app }}/.next release/${{ matrix.app }}/ || true
cp -r apps/${{ matrix.app }}/.vitepress/dist release/${{ matrix.app }}/ || true
cp -r apps/${{ matrix.app }}/package.json release/${{ matrix.app }}/
cd release
zip -r ../${{ matrix.app }}-${GITHUB_REF_NAME}.zip ${{ matrix.app }}
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ node_modules/
!.yarn/plugins
!.yarn/releases
!.yarn/versions
pnpm-lock.yaml
pnpm-workspace.yaml
.pnpm-debug.log*

######################
Expand Down
Loading
Loading