The 'Build, Test & Typecheck' job was failing immediately at its first 'Pull latest' step with: /opt/bytelyst/learning_ai_common_plat: No such file or directory exit status 1 The act_runner on this host has the monorepo at /Users/sd9235/code/mygh/learning_ai_common_plat (same pattern as the consumer repos that switched to the on-disk workflow earlier today). The legacy /opt/bytelyst/* path predates the migration and never existed on this host. Replaced all 10 occurrences across both CI workflow files (.gitea/workflows/ci.yml and publish.yml) with sed. No script content changed, only the cd target.
84 lines
2.1 KiB
YAML
84 lines
2.1 KiB
YAML
name: CI — Common Platform
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'packages/**'
|
|
- 'services/**'
|
|
- 'dashboards/**'
|
|
- 'pnpm-lock.yaml'
|
|
- 'pnpm-workspace.yaml'
|
|
- 'package.json'
|
|
- 'tsconfig.base.json'
|
|
|
|
concurrency:
|
|
group: ci-common-plat-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build, Test & Typecheck
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- name: Pull latest
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
git fetch origin main
|
|
git checkout main
|
|
git reset --hard origin/main
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm install --frozen-lockfile
|
|
|
|
- name: Build all packages
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm build
|
|
|
|
- name: Lint
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm lint
|
|
|
|
- name: Typecheck
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm typecheck
|
|
|
|
- name: Test
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm test
|
|
|
|
publish-packages:
|
|
name: Publish @bytelyst/* to Gitea npm registry
|
|
runs-on: ubuntu-latest
|
|
needs: [build-and-test]
|
|
timeout-minutes: 15
|
|
steps:
|
|
- name: Pull latest
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
git fetch origin main
|
|
git checkout main
|
|
git reset --hard origin/main
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm install --frozen-lockfile
|
|
|
|
- name: Build all packages
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
pnpm build
|
|
|
|
- name: Publish outdated packages to Gitea registry
|
|
run: |
|
|
cd /Users/sd9235/code/mygh/learning_ai_common_plat
|
|
bash ./scripts/gitea/publish-outdated-packages.sh --skip-build
|