Package updates #51
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
| # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: yarn | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Type check | |
| run: yarn type-check | |
| - name: Run unit tests | |
| run: yarn test:unit | |
| lint: | |
| name: Linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: yarn | |
| node-version-file: .nvmrc | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Run ESLint | |
| run: yarn lint:eslint | |
| - name: Run Stylelint | |
| run: yarn lint:stylelint |