chore: setup linting for Typescript code to ensure consistent style #126
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: test | |
| # On every pull request, but only on push to master | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-node: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4.2.1 | |
| with: | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Check formatting | |
| run: yarn format:check | |
| - name: Check for circular dependencies and print porting order | |
| run: | | |
| python3 analyze_imports.py modules | |
| - name: Build packages | |
| run: yarn build | |
| - name: Run tests | |
| run: | | |
| yarn test |