Skip to content

Commit c5bbe93

Browse files
committed
Moving compat test into the main CI workflow.
1 parent c145622 commit c5bbe93

2 files changed

Lines changed: 30 additions & 53 deletions

File tree

.github/workflows/compat.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
run: pnpm test:esm
5050
- name: Issue 952 # see https://github.com/RobinTail/express-zod-api/issues/952
5151
run: pnpm test:952
52+
- name: Pack express-zod-api
53+
run: pnpm -F express-zod-api pack --out compat-test/ez.tgz
54+
- name: Pack @express-zod-api/migration
55+
run: pnpm -F migration pack --out compat-test/migration.tgz
56+
- name: Upload artifact
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: dist
60+
path: compat-test
5261
report:
5362
needs: build
5463
runs-on: ubuntu-latest
@@ -59,3 +68,24 @@ jobs:
5968
with:
6069
github-token: ${{ secrets.github_token }}
6170
parallel-finished: true
71+
compat:
72+
needs: build
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/setup-node@v4
76+
with:
77+
node-version: 20
78+
- name: Download artifact
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: dist
82+
- name: Add dependencies
83+
run: |
84+
85+
yarn add -D [email protected] [email protected] vitest tsx
86+
yarn add express-zod-api@./ez.tgz
87+
yarn add @express-zod-api/migration@./migration.tgz
88+
- name: Run tests
89+
run: |
90+
yarn eslint --fix
91+
yarn vitest

0 commit comments

Comments
 (0)