Skip to content

Commit 52b299f

Browse files
committed
use local copy of build-tools in template test
Signed-off-by: Karthik Ganeshram <[email protected]>
1 parent 81113bc commit 52b299f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/test.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,31 @@ jobs:
7373
- name: Install templates
7474
run: spin templates install --dir .
7575

76+
- name: Install Rust toolchain
77+
shell: bash
78+
run: |
79+
rustup toolchain install ${{ env.RUST_VERSION }} --no-self-update
80+
rustup default ${{ env.RUST_VERSION }}
81+
82+
- name: 'Install Wasm Rust target'
83+
run: rustup target add wasm32-wasip1 wasm32-unknown-unknown --toolchain ${{ env.RUST_VERSION }}
84+
85+
- name: Build the `build-tools` package
86+
run: |
87+
cd packages/build-tools
88+
npm install
89+
npm run build
90+
7691
- name: Create new project
7792
run: spin new -t http-ts --value http-router=${{ matrix.router }} -a test-project
7893

79-
- name: Add new component to project
94+
- name: Add new component to project and override build-tools
8095
run: |
8196
cd test-project
97+
npm install ../packages/build-tools
8298
spin add -t http-ts --value http-router=${{ matrix.router }} -a new-component
8399
cd new-component
84-
npm install
100+
npm install ../../packages/build-tools
85101
86102
- name: Build the application
87103
run: |

0 commit comments

Comments
 (0)