Commit 2adc1e8
Add TypeScript validation workflow (#16)
The existing `validate-javascript` job covered JS samples only;
TypeScript samples in a `typescript/` directory had no CI validation.
## Changes
- **`validate-structure`**: added `typescript` to the scanned
directories for naming convention and `README.md` checks
- **`validate-typescript`** (new job): mirrors `validate-javascript`
with an additional `npm run build` step to handle TypeScript compilation
```yaml
validate-typescript:
name: Validate TypeScript Samples
steps:
- uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install and build
run: |
[ -d typescript ] || exit 0
for sample in typescript/*/; do
[ -f "${sample}package.json" ] || continue
npm install --prefix "$sample" --silent
npm run build --prefix "$sample" --if-present
done
```
Both jobs exit cleanly when the `typescript/` directory does not yet
exist.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 Send tasks to Copilot coding agent from
[Slack](https://gh.io/cca-slack-docs) and
[Teams](https://gh.io/cca-teams-docs) to turn conversations into code.
Copilot posts an update in your thread when it's finished.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: seesharprun <5067401+seesharprun@users.noreply.github.com>
Co-authored-by: Sidney Andrews <sidandrews@microsoft.com>1 parent 590af87 commit 2adc1e8
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
82 | 101 | | |
83 | 102 | | |
84 | 103 | | |
| |||
0 commit comments