Skip to content

Commit

Permalink
feat: add comlink-nodejs ci_cd job
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed Feb 20, 2024
1 parent 5cb27b7 commit 70e50fa
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
CARGO_PROFILE: 'debug'
CORE_WASM: 'upload'
TEST_CORE_WASM: 'upload'
COMLINK_WASM: 'upload'
- name: Install Wasmtime
run: |
curl https://wasmtime.dev/install.sh -sSf | bash
Expand Down Expand Up @@ -146,3 +147,32 @@ jobs:
run: python -m pip install .
- name: Run tests
run: python -m unittest discover tests/

comlink-nodejs:
name: Node.js Comlink
needs: [core]
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/nodejs_comlink
steps:
# checkout
- uses: actions/checkout@v4
# setup
- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org/
node-version: "18"
cache: yarn
cache-dependency-path: packages/nodejs_comlink/yarn.lock
- uses: actions/download-artifact@v4
with:
name: comlink-wasm
path: packages/nodejs_comlink/assets
# test and build
- name: Install Yarn dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run tests
run: yarn test

0 comments on commit 70e50fa

Please sign in to comment.