Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use and build with edgee github action #11

Merged
merged 6 commits into from
Feb 18, 2025
Merged
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
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
Loading