Skip to content

Commit 15e3259

Browse files
Add plugins matrix job to CI for tsc, lint, prettier, and build
Runs yarn install --immutable, type checking, linting, formatting check, and build for each plugin workspace in parallel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent ea8ac3a commit 15e3259

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,48 @@ jobs:
4545
exit 1
4646
fi
4747
echo "No changes in .github/ — OK"
48+
49+
plugins:
50+
runs-on: ubuntu-latest
51+
52+
strategy:
53+
matrix:
54+
workspace:
55+
- backstage-1.42
56+
- backstage-1.45
57+
- backstage-1.49
58+
- backstage-1.52
59+
60+
steps:
61+
- name: Harden runner
62+
uses: step-security/harden-runner@v2
63+
with:
64+
egress-policy: audit
65+
66+
- name: Checkout
67+
uses: actions/checkout@v7
68+
69+
- name: Setup Node.js
70+
uses: actions/setup-node@v4
71+
with:
72+
node-version-file: plugins/${{ matrix.workspace }}/package.json
73+
74+
- name: Install dependencies
75+
run: yarn install --immutable
76+
working-directory: plugins/${{ matrix.workspace }}
77+
78+
- name: TypeScript type check
79+
run: yarn tsc
80+
working-directory: plugins/${{ matrix.workspace }}
81+
82+
- name: Lint
83+
run: yarn lint:all
84+
working-directory: plugins/${{ matrix.workspace }}
85+
86+
- name: Check formatting
87+
run: yarn prettier:check
88+
working-directory: plugins/${{ matrix.workspace }}
89+
90+
- name: Build
91+
run: yarn build:all
92+
working-directory: plugins/${{ matrix.workspace }}

0 commit comments

Comments
 (0)