Three consecutive commits to eslint.config.js (9be49acb,1035b730,7ae60852) failed to trigger any new common-plat CI runs even after `git push origin main && git push gitea main`. Root cause: the workflow had a 'paths:' filter that only matched packages/**, services/**, dashboards/**, lockfiles, and a few specific root manifests — `eslint.config.js` and the workflows themselves were NOT in the list, so Gitea silently skipped every push that only touched those files. Added the two missing globs: - 'eslint.config.js' - '.gitea/workflows/**' Both are demonstrably CI-relevant — eslint.config.js drives the lint step that's currently failing, and workflow edits obviously need to trigger a fresh run. This commit edits a workflow file, so it is itself covered by the new path glob and should trigger a run on push.
89 lines
2.4 KiB
YAML
89 lines
2.4 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'
|
|
# Root-level configs that affect CI behavior and must trigger a
|
|
# rerun when modified (otherwise pushes to e.g. eslint.config.js
|
|
# are silently skipped and CI stays red against stale code).
|
|
- 'eslint.config.js'
|
|
- '.gitea/workflows/**'
|
|
|
|
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
|