chore(deps): update dependency vitest to v3 (#966) #2463
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: 'Asia/ShangHai' | |
timezoneMacos: 'Asia/ShangHai' | |
timezoneWindows: 'Asia/ShangHai' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # to fetch all history | |
fetch-tags: true | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: | | |
pnpm build | |
pnpm build:vite | |
pnpm build:webpack | |
- name: Test | |
run: pnpm test | |
- name: Upload pages artifacts | |
# https://github.com/actions/upload-pages-artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'examples/vite/dist' | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/main' | |
# https://github.com/actions/deploy-pages | |
uses: actions/deploy-pages@v4 |