Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/test-built-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test unit on built packages

on:
push:
branches: [main, release]
pull_request:
workflow_dispatch:
merge_group:
types:
- checks_requested

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test unit
run: pnpm test:built-unit-and-attest
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml → .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test docs

on:
push:
Expand All @@ -9,6 +9,10 @@ on:
types:
- checks_requested

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
Expand All @@ -29,8 +33,5 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm test

- name: Build docs
run: cd apps/typegpu-docs && pnpm build
run: pnpm run --filter typegpu-docs build
37 changes: 37 additions & 0 deletions .github/workflows/test-misc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test style, types and circular deps

on:
push:
branches: [main, release]
pull_request:
workflow_dispatch:
merge_group:
types:
- checks_requested

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test miscellaneous
run: pnpm test:style && pnpm test:types && pnpm run test:circular-deps
37 changes: 37 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test unit on source

on:
push:
branches: [main, release]
pull_request:
workflow_dispatch:
merge_group:
types:
- checks_requested

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test unit
run: pnpm test:unit-and-attest
10 changes: 10 additions & 0 deletions apps/infra-benchmarks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"declaration": false,
"emitDeclarationOnly": false,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src/**/*.ts"]
}
1 change: 1 addition & 0 deletions apps/typegpu-docs/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default defineConfig({
name: 'individual-example-tests',
root: './tests/individual-example-tests',
environment: 'node',
isolate: false,
},
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/typegpu/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export default defineConfig({
? [...configDefaults.exclude, 'tests/internal/**/*.{test,spec}.?(c|m)[jt]s?(x)']
: configDefaults.exclude,
globalSetup: ['setupVitest.ts'],
isolate: false,
},
Comment on lines 19 to 21

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When tests touch metadata maps, the keys are local definitions within the test itself, so it shouldn't be a problem

});
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"exclude": ["**/dist"]
"exclude": ["**/dist", "**/node_modules", "node_modules", "apps/**"]
}
Loading