Skip to content

Commit a3686a9

Browse files
committed
Add caching and build steps for zod-to-valibot to CI
1 parent 4cf4e9e commit a3686a9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/actions/environment/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,16 @@ runs:
5151
shell: bash
5252
run: pnpm build
5353
working-directory: packages/to-json-schema
54+
55+
- name: Create zod-to-valibot build cache
56+
id: zod-to-valibot-build-cache
57+
uses: actions/cache@v4
58+
with:
59+
path: ${{ github.workspace }}/codemod/zod-to-valibot/dist
60+
key: zod-to-valibot-build-cache-${{ hashFiles('codemod/zod-to-valibot/src/**/*.ts', '!codemod/zod-to-valibot/src/**/*.test.ts') }}
61+
62+
- name: Build zod-to-valibot
63+
if: steps.zod-to-valibot-build-cache.outputs.cache-hit != 'true'
64+
shell: bash
65+
run: pnpm build
66+
working-directory: codemod/zod-to-valibot

0 commit comments

Comments
 (0)