Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Syuparn committed Feb 23, 2024
1 parent 24a4463 commit b6ddb18
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b6ddb18

Please sign in to comment.