Refresh Libraries on FileSystem Changes, Invalidate Cache after Index… #55
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: Web Type Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
my-job: | |
name: my-job | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: apps/web/node_modules | |
key: ${{ runner.os }}-bun-${{ hashFiles('apps/web/package.json', 'apps/web/bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-bun- | |
- name: Install dependencies | |
run: bun install | |
working-directory: apps/web | |
- name: Run type-check | |
run: bun run type-check | |
working-directory: apps/web |