chore(deps): update vitest monorepo to v4 #492
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': | |
| push: | |
| branches-ignore: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: [18, 20, 22] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set Timezone | |
| uses: MathRobin/[email protected] | |
| with: | |
| timezoneLinux: Europe/Paris | |
| - name: Setup Node version | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.version }} | |
| - name: System info | |
| run: | | |
| echo "node" | |
| node -v | |
| echo "npm" | |
| npm -v | |
| echo "yarn" | |
| yarn -v | |
| echo "yarn enableImmutableInstalls" | |
| yarn config get enableImmutableInstalls | |
| - name: Allow modify yarn.lock | |
| run: yarn config set -H enableImmutableInstalls false | |
| - name: Install modules | |
| run: yarn install | |
| - name: Run lint tasks | |
| run: | | |
| yarn lint | |
| yarn prettier | |
| - name: Run test | |
| run: yarn test |