Skip to content

Commit

Permalink
Add wasm to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgoettschkes committed Jan 16, 2024
1 parent 513eb34 commit cbfe9ad
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test-exercises.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,29 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
run: bash rust-tests.sh
shell: bash
test-wasm:
runs-on: ubuntu-22.04
steps:
- name: "Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get specific changed files
id: changed-files
uses: tj-actions/changed-files@v39
with:
files: |
wasm/**
wasm-tests.sh
- name: "Setup Node"
uses: actions/setup-node@v3
if: steps.changed-files.outputs.any_changed == 'true'
with:
node-version: ${{ env.node-version }}
- name: "Run tests"
if: steps.changed-files.outputs.any_changed == 'true'
run: bash wasm-tests.sh
shell: bash
test-zig:
runs-on: ubuntu-22.04
steps:
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ python 3.12.0
rebar 3.22.1
ruby 3.2.2
rust 1.72.1
yarn 1.22.19
zig 0.11.0
11 changes: 11 additions & 0 deletions wasm-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

CUR_PATH=`pwd`

for dir in wasm/*/; do
cd $dir;
yarn install
yarn test
cd $CUR_PATH;
done

0 comments on commit cbfe9ad

Please sign in to comment.