chore(deps): bump vite from 5.1.1 to 5.4.11 #1079
This file contains 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: PR flow | |
on: | |
pull_request: | |
jobs: | |
code-quality: | |
name: Lint and type check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check unpinned versions | |
run: ./.github/scripts/pin-version | |
- name: node modules cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ hashFiles('.nvmrc', 'yarn.lock') }} | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Check TypeScript types | |
run: yarn typecheck | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
needs: code-quality | |
strategy: | |
fail-fast: false | |
matrix: | |
containers: [1, 2, 3] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Copy .env.example | |
run: cp .env.example .env | |
- name: Build | |
run: yarn build | |
# run 3 copies of the current job in parallel | |
- name: Run split Cypress tests 🧪 | |
uses: cypress-io/github-action@v5 | |
with: | |
start: node cypress.server.mjs | |
browser: chrome | |
# pass the machine index and the total number | |
env: | |
SPLIT: ${{ strategy.job-total }} | |
SPLIT_INDEX: ${{ strategy.job-index }} |