From b6ddb1841732ab5739659f448595fbba6cad4ff0 Mon Sep 17 00:00:00 2001 From: syuparn Date: Fri, 23 Feb 2024 20:18:35 +0900 Subject: [PATCH] add test --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5524e9b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: [push] + +jobs: + build: + name: Build + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Setup bats + run: apt-get update && apt-get install bats + - name: Setup Wasmer + uses: wasmerio/setup-wasmer@v3.1 + with: + version: 'v4.2.3' + - name: prepare Onyx + run: | + wasmer --version + git clone https://github.com/onyx-lang/onyx --depth 1 + cd onyx + git fetch origin v0.1.9-beta + git checkout v0.1.9-beta + source settings.sh + ./build.sh compile package + echo $(pwd)"/dist/bin" >> $GITHUB_PATH + echo $(pwd)"/dist/bin" + ls $(pwd)"/dist/bin" + echo "$PATH" + cd .. + - name: test + run: | + export ONYX_PATH=onyx/dist + make test