Implement code and pre blocks support on web #989
Workflow file for this run
This file contains hidden or 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: Typecheck, lint and test | |
| on: | |
| pull_request: | |
| merge_group: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| check: | |
| if: github.repository == 'Expensify/react-native-live-markdown' | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: check-root-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install node_modules | |
| run: npm ci | |
| - name: Verify there's no parser diff | |
| working-directory: parser | |
| run: | | |
| npm run build | |
| if ! git diff --name-only --exit-code; then | |
| # shellcheck disable=SC2016 | |
| echo 'Error: Parser diff detected! Please run `cd parser && npm run build` and commit the changes.' | |
| exit 1 | |
| fi | |
| - name: Typecheck library | |
| run: npm run typecheck -- --project tsconfig.json | |
| - name: Typecheck parser | |
| run: npm run typecheck -- --project parser/tsconfig.json | |
| - name: Typecheck example app | |
| run: npm run typecheck -- --project example/tsconfig.json | |
| - name: Typecheck WebExample app | |
| run: npm run typecheck -- --project WebExample/tsconfig.json | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm run test |