diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6337dd0..1efd1f2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,13 +19,21 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '20' + node-version: "20" - - name: Install dependencies - run: npm install + - name: Install edgee + uses: edgee-cloud/install-edgee-cli@v0.1.0 - - name: Run build - run: npm run build + - name: Build + run: | + edgee components build + + - name: Verify .wasm file exists + run: | + if [ ! -f "./example-ts-component.wasm" ]; then + echo "❌ Error: example-ts-component.wasm not found" >&2 + exit 1 + fi - name: Run tests run: npm test diff --git a/README.md b/README.md index 04e0575..670a071 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ pre-instantiating (which requires a lot of computing), which can be mitigated us ## Setup Requirements: -- [edgee-cli] (https://github.com/edgee-cloud/edgee) +- [edgee-cli](https://github.com/edgee-cloud/edgee) - Node.js / npm / npx ```shell