Merge pull request #146 from gutentag2012/dependabot/npm_and_yarn/rea… #379
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: | |
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" |