Skip to content

fix: Save on preview to prevent error on uploaded form file #7401

fix: Save on preview to prevent error on uploaded form file

fix: Save on preview to prevent error on uploaded form file #7401

Workflow file for this run

name: Vitest Tests
on:
pull_request:
branches: [develop, main, feature/*]
jobs:
vitest-run:
name: Vitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Node.JS Setup
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: .nvmrc
- name: Yarn update to V4
run: corepack enable && yarn set version berry
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: linux-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
linux-yarn-
- name: "Install dependencies"
run: yarn workspaces focus gcforms flag_initialization
- name: Vitest Tests
run: yarn test:vitest