chore: add makefile #6049
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: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| merge_group: | |
| jobs: | |
| typecheck: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: pnpm/[email protected] | |
| - name: Use Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: 20 | |
| check-latest: true | |
| cache: 'pnpm' | |
| - run: make install-dependencies | |
| - run: make typing | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: pnpm/[email protected] | |
| - name: Use Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: 20 | |
| check-latest: true | |
| cache: 'pnpm' | |
| - run: make install-dependencies | |
| - run: make build | |
| - run: make lint | |
| test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| test-environment: | |
| - node | |
| - jsdom | |
| node: | |
| - '18' | |
| - '20' | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: pnpm/[email protected] | |
| - name: Use Node.js | |
| uses: actions/[email protected] | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| cache: 'pnpm' | |
| - run: make install-dependencies | |
| - run: make build | |
| - run: make test-coverage --environment ${{ matrix.test-environment }} | |
| - uses: codecov/[email protected] |