build(deps): bump vite from 5.4.2 to 5.4.11 #40
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
workflow_dispatch: # allow manual reruns | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node-version: [20.x] # [14.x, 16.x, 18.x] | |
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint --format junit -o reports/junit/js-lint-results.xml | |
- name: Test | |
run: pnpm run test | |
env: | |
CI: 1 | |
NODE_ENV: ci | |
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml" | |
DMNO_VAULT_KEY: ${{ secrets.DMNO_VAULT_KEY }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: reports/junit | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: coverage | |