docs: improve code examples and documentation #13
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: TypeScript Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'typescript/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'typescript/**' | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: '9' | |
| - name: Install dependencies | |
| working-directory: typescript | |
| run: pnpm install | |
| - name: Build project | |
| working-directory: typescript | |
| run: pnpm build | |
| - name: Run tests | |
| working-directory: typescript | |
| run: pnpm test |