Skip to content

Commit

Permalink
feat: Use and build with edgee github action (#11)
Browse files Browse the repository at this point in the history
* feat: add edgee action

* feat: use the cehck on all branch

* feat: build and verify file

* feat: update edgee cli action

* feat: update error handling in case of file not found

* feat: typo in readme
  • Loading branch information
NicolasGirardot authored Feb 18, 2025
1 parent da927b4 commit 422e904
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Deploy
on:
push:
branches:
- main
- "*"
pull_request:
branches:
- main
Expand All @@ -16,16 +16,24 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Install edgee
uses: edgee-cloud/install-edgee-cli@v0.1.0

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
node-version: "20"

- name: Install dependencies
run: npm install
- name: Build
run: |
edgee components build
- name: Run build
run: npm run build
- name: Verify .wasm file exists
run: |
if [ ! -f "./example-js-component.wasm" ]; then
echo "❌ Error: example-js-component.wasm not found" >&2
exit 1
fi
- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```shell
Expand Down

0 comments on commit 422e904

Please sign in to comment.