chore: move to monorepo with bun #612
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: Check JS | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/check-js.yml' | |
- './packages/react-native-video/src/**' | |
- '*.json' | |
- '*.js' | |
- '*.jsx' | |
- '*.ts' | |
- '*.tsx' | |
- '*.lock' | |
pull_request: | |
paths: | |
- '.github/workflows/check-js.yml' | |
- './packages/react-native-video/src/**' | |
- '*.json' | |
- '*.js' | |
- '*.jsx' | |
- '*.ts' | |
- '*.tsx' | |
- '*.lock' | |
jobs: | |
TypeScript-Check: | |
name: Check TS (tsc) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Install npm dependencies (with bun) | |
run: bun install | |
- name: Install reviewdog | |
uses: reviewdog/action-setup@v1 | |
- name: Check TypeScript | |
run: | | |
bun tsc | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JS-Lint: | |
name: Lint JS (eslint, prettier) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Install npm dependencies (with bun) | |
run: bun install | |
- name: Run ESLint | |
run: bun lint -f @jamesacarr/github-actions | |
- name: Run ESLint with auto-fix | |
run: bun lint --fix | |
- name: Verify no files have changed after auto-fix | |
run: git diff --exit-code HEAD |