fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: update workflows

Lubos be5c375e 238409e9

+33 -28
+5 -9
.github/workflows/ci.yml
··· 67 67 run: pnpm install --frozen-lockfile 68 68 69 69 - name: Build packages 70 - run: pnpm turbo run build --filter="@hey-api/**" 70 + run: pnpm tb "@hey-api/**" 71 71 72 72 - name: Check examples generated code 73 73 if: matrix.is-primary ··· 75 75 76 76 - name: Build examples 77 77 if: matrix.is-primary 78 - run: pnpm turbo run build --filter="@example/**" 78 + run: pnpm tb "@example/**" 79 79 80 80 - name: Run linter 81 81 run: pnpm turbo run lint 82 82 83 83 - name: Run type check 84 - run: pnpm turbo run typecheck 85 - 86 - - name: Test packages 87 - run: pnpm turbo run test --filter="@hey-api/**" --filter="@test/**" 84 + run: pnpm typecheck 88 85 89 - - name: Test examples 90 - if: matrix.is-primary 91 - run: pnpm turbo run test --filter="@example/**" 86 + - name: Run tests 87 + run: pnpm test 92 88 93 89 - name: Publish preview packages 94 90 if: matrix.is-primary && github.event_name == 'pull_request'
+2 -2
.github/workflows/coverage.yml
··· 36 36 run: pnpm install --frozen-lockfile 37 37 38 38 - name: Run test coverage 39 - run: pnpm turbo run test:coverage 39 + run: pnpm test:coverage 40 40 41 41 - name: Upload code coverage to codecov.io 42 42 uses: codecov/codecov-action@v5 43 43 with: 44 44 token: ${{ secrets.CODECOV_TOKEN }} 45 - directory: ./packages/openapi-ts/coverage 45 + directory: ./coverage 46 46 flags: unittests 47 47 fail_ci_if_error: true
+2 -2
.github/workflows/release.yml
··· 36 36 run: pnpm install --frozen-lockfile 37 37 38 38 - name: Build packages 39 - run: pnpm turbo run build --filter="@hey-api/**" 39 + run: pnpm tb "@hey-api/**" 40 40 41 41 - name: Generate GitHub App Token 42 42 id: app-token ··· 93 93 run: pnpm install --frozen-lockfile 94 94 95 95 - name: Build packages 96 - run: pnpm turbo run build --filter="@hey-api/**" 96 + run: pnpm tb "@hey-api/**" 97 97 98 98 - name: Publish snapshot 99 99 run: |
+2 -2
package.json
··· 33 33 "prepare": "husky", 34 34 "test:changelog": "vitest run __tests__/*.test.ts", 35 35 "test:changelog:watch": "vitest watch __tests__/*.test.ts", 36 - "test:coverage": "turbo run build && vitest run --coverage", 37 - "test:update": "turbo run build && vitest watch --update", 36 + "test:coverage": "turbo run build && vitest run --coverage", 37 + "test:update": "turbo run build && vitest watch --update", 38 38 "test:watch": "turbo run build && vitest watch", 39 39 "test": "turbo run build && vitest", 40 40 "typecheck": "turbo run typecheck",
+3 -1
packages/openapi-python/vitest.setup.ts
··· 1 + import { fileURLToPath } from 'node:url'; 2 + 1 3 import { beforeAll } from 'vitest'; 2 4 3 5 beforeAll(() => { 4 - process.chdir(new URL('.', import.meta.url).pathname); 6 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 5 7 });
+3 -1
packages/openapi-ts-tests/main/vitest.setup.ts
··· 1 + import { fileURLToPath } from 'node:url'; 2 + 1 3 import { beforeAll } from 'vitest'; 2 4 3 5 beforeAll(() => { 4 - process.chdir(new URL('.', import.meta.url).pathname); 6 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 5 7 });
+3 -1
packages/openapi-ts-tests/sdks/vitest.setup.ts
··· 1 + import { fileURLToPath } from 'node:url'; 2 + 1 3 import { beforeAll } from 'vitest'; 2 4 3 5 beforeAll(() => { 4 - process.chdir(new URL('.', import.meta.url).pathname); 6 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 5 7 });
+3 -1
packages/openapi-ts-tests/zod/v3/vitest.setup.ts
··· 1 + import { fileURLToPath } from 'node:url'; 2 + 1 3 import { beforeAll } from 'vitest'; 2 4 3 5 beforeAll(() => { 4 - process.chdir(new URL('.', import.meta.url).pathname); 6 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 5 7 });
+3 -1
packages/openapi-ts-tests/zod/v4/vitest.setup.ts
··· 1 + import { fileURLToPath } from 'node:url'; 2 + 1 3 import { beforeAll } from 'vitest'; 2 4 3 5 beforeAll(() => { 4 - process.chdir(new URL('.', import.meta.url).pathname); 6 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 5 7 });
-2
packages/openapi-ts/src/__tests__/cli.test.ts
··· 164 164 'foo', 165 165 '--dry-run', 166 166 'true', 167 - '--experimental-parser', 168 - 'true', 169 167 '--file', 170 168 'bar', 171 169 '--input',
+3 -1
packages/openapi-ts/vitest.setup.ts
··· 1 1 import 'zone.js'; // Angular needs zones 2 2 3 + import { fileURLToPath } from 'node:url'; 4 + 3 5 import { TestBed } from '@angular/core/testing'; 4 6 import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing'; 5 7 import { beforeAll } from 'vitest'; ··· 7 9 TestBed.initTestEnvironment(BrowserTestingModule, platformBrowserTesting()); 8 10 9 11 beforeAll(() => { 10 - process.chdir(new URL('.', import.meta.url).pathname); 12 + process.chdir(fileURLToPath(new URL('.', import.meta.url))); 11 13 });
+4 -4
turbo.json
··· 23 23 }, 24 24 "//#test": { 25 25 "cache": true, 26 - "dependsOn": ["build"], 26 + "dependsOn": ["^build"], 27 27 "inputs": ["src/**", "test/**", "*.config.*", "package.json", "vitest.config.ts"], 28 28 "outputs": ["coverage/**"] 29 29 }, 30 30 "//#test:coverage": { 31 - "dependsOn": ["build"], 31 + "dependsOn": ["^build"], 32 32 "inputs": ["src/**", "test/**", "*.config.*", "package.json", "vitest.config.ts"], 33 33 "outputs": ["coverage/**"] 34 34 }, 35 35 "//#test:update": { 36 36 "cache": false, 37 - "dependsOn": ["build"] 37 + "dependsOn": ["^build"] 38 38 }, 39 39 "//#test:watch": { 40 40 "cache": false, 41 - "dependsOn": ["build"], 41 + "dependsOn": ["^build"], 42 42 "persistent": true 43 43 }, 44 44 "typecheck": {
-1
vitest.config.ts
··· 10 10 provider: 'v8', 11 11 }, 12 12 globals: true, 13 - pool: platform() === 'win32' ? 'threads' : 'forks', 14 13 projects: [ 15 14 'examples/*/vitest.config.ts', 16 15 {