Skip to content

chore(deps): update vitest to v2.1.1 #326

chore(deps): update vitest to v2.1.1

chore(deps): update vitest to v2.1.1 #326

Workflow file for this run

name: CI
on:
merge_group:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: 'package.json'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Format Check
run: npm run prettier.dry-run
- name: Build project
run: npm run build
- name: Run Tests
run: npm test -- --no-watch
# Verify that the Example Project Builds
- name: Install Example Project Dependencies
working-directory: './example'
run: npm ci
- name: Build Example Project
working-directory: './example'
run: npm run build
- name: Verify No Files Have Changed
working-directory: './example'
# here we check that there are no changed / new files.
# we use `git status` and check if there are more than 0 lines in the output.
run: |
if [[ $(git status --short | wc -l) -ne 0 ]]; then
STATUS=$(git status --verbose);
printf "%s" "$STATUS";
git diff | cat;
exit 1;
fi
shell: bash