Skip to content

Merge pull request #146 from gutentag2012/dependabot/npm_and_yarn/rea… #379

Merge pull request #146 from gutentag2012/dependabot/npm_and_yarn/rea…

Merge pull request #146 from gutentag2012/dependabot/npm_and_yarn/rea… #379

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
actions: read
contents: read
pull-requests: write
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 9
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm style
unittest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 9
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm test
- name: Coverage Report (dev-tools-react)
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "Dev Tools React Coverage"
json-summary-path: "./packages/dev-tools-react/coverage/coverage-summary.json"
json-final-path: "./packages/dev-tools-react/coverage/coverage-final.json"
- name: Coverage Report (form-core)
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "Form Core Coverage"
json-summary-path: "./packages/form-core/coverage/coverage-summary.json"
json-final-path: "./packages/form-core/coverage/coverage-final.json"
- name: Coverage Report (form-react)
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "Form React Coverage"
json-summary-path: "./packages/form-react/coverage/coverage-summary.json"
json-final-path: "./packages/form-react/coverage/coverage-final.json"
- name: Coverage Report (validation-adapter-zod)
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "Validation Adapter Zod Coverage"
json-summary-path: "./packages/validation-adapter-zod/coverage/coverage-summary.json"
json-final-path: "./packages/validation-adapter-zod/coverage/coverage-final.json"