refactor: adding typescript jsdocs types #591
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: main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: | |
| - version: 20.x | |
| - version: 22.x | |
| - version: 24.x | |
| runs-on: ubuntu-22.04 | |
| name: Tests on Node.js v${{ matrix.node.version }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: ${{ matrix.node.version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build sources | |
| run: ${{ matrix.node.env }} npm run build | |
| - name: Run tests | |
| run: ${{ matrix.node.env }} npm run test:coverage | |
| - name: Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: "22.x" | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build sources | |
| run: npm run build | |
| - name: Run lint | |
| run: npm run lint |