Skip to content

feat: add Type Modifiers > Prickly Predicates appetizer #252

feat: add Type Modifiers > Prickly Predicates appetizer

feat: add Type Modifiers > Prickly Predicates appetizer #252

Workflow file for this run

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