Bump vite from 4.5.13 to 7.1.7 #238
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] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install Chromium | |
| run: npx puppeteer browsers install chrome | |
| - name: Install Jest CLI | |
| run: npm i -g jest-cli | |
| - name: Run tests | |
| run: npm run test | |
| - name: Sanitize filenames | |
| if: failure() | |
| run: | | |
| find test/snapshots -depth -name '*[<>:"|?*]*' | while read file; do | |
| safe_name=$(echo "$file" | sed 's/[<>:"|?*]/_/g') | |
| mv "$file" "$safe_name" | |
| done | |
| - name: Upload failed images | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: regression-images | |
| path: test/snapshots |