feat: add Type Modifiers > Prickly Predicates appetizer #252
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |