-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 976 Bytes
/
tsc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: TypeScript Compile
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
- run: npm ci
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v22
with:
files: projects
- name: Copy solution files into index files
run: ./scripts/copy-solutions.sh
shell: bash
- name: Run tsc in project directories
if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
run: npx zx ./scripts/changed-solutions.mjs tsc ${{ steps.changed-files.outputs.all_changed_files }}
shell: bash
- name: Run tsc in all project directories
if: ${{ steps.changed-files.outputs.all_changed_files == '' }}
run: ./scripts/check-solutions.sh "tsc"
shell: bash