File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -73,22 +73,39 @@ 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 : |
88104 cd test-project
89105 spin build
90106
91107 - name : Test the application
108+ shell : bash
92109 run : |
93110 cd test-project
94111 spin up &
@@ -105,7 +122,7 @@ jobs:
105122 fi
106123
107124 echo "Attempt $i: status $STATUS, retrying in 2s..."
108- sleep 2
125+ sleep 5
109126 done
110127
111128 kill $SPIN_PID
You can’t perform that action at this time.
0 commit comments