Skip to content
Draft
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
15 changes: 0 additions & 15 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:

npm-test-unit:
runs-on: namespace-profile-ubuntu-2-cores
# TODO: Remove unit test dependency on Wasm binary
needs: npm-build-wasm
steps:
- uses: actions/checkout@v5

Expand All @@ -39,19 +37,6 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v4

- name: Copy prepared wasm
run: |
ls -R prepared-wasm
cp prepared-wasm/kcl_wasm_lib_bg.wasm public
mkdir rust/kcl-wasm-lib/pkg
cp prepared-wasm/kcl_wasm_lib* rust/kcl-wasm-lib/pkg

- name: Copy prepared ts-rs bindings
run: |
ls -R prepared-ts-rs-bindings
mkdir rust/kcl-lib/bindings
cp -r prepared-ts-rs-bindings/* rust/kcl-lib/bindings/

- name: npm run test:unit
if: ${{ github.event_name != 'release' && github.event_name != 'schedule' }}
run: |-
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ endif
check: format lint

.PHONY: format
format: install public/kcl_wasm_lib_bg.wasm ## Format the code
format: install ## Format the code
npm run fmt

.PHONY: lint
lint: install public/kcl_wasm_lib_bg.wasm ## Lint the code
lint: install ## Lint the code
npm run tsc
npm run lint

Expand Down Expand Up @@ -130,8 +130,7 @@ endif
test: test-unit test-integration

.PHONY: test-unit
test-unit: install public/kcl_wasm_lib_bg.wasm ## Run the unit tests
# TODO: Remove unit test dependency on Wasm binary
test-unit: install ## Run the unit tests
npm run test:unit

.PHONY: test-integration
Expand Down
Loading