From 9a5511929bf911826bb707fe2653bfd5659dbf89 Mon Sep 17 00:00:00 2001 From: Ataminos Date: Thu, 12 Sep 2024 21:45:46 +0100 Subject: [PATCH] Add GitHub Actions workflow for Izem Runtime CI --- .github/workflows/nim-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/nim-ci.yml diff --git a/.github/workflows/nim-ci.yml b/.github/workflows/nim-ci.yml new file mode 100644 index 0000000..4355de5 --- /dev/null +++ b/.github/workflows/nim-ci.yml @@ -0,0 +1,32 @@ +name: Izem Runtime CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Nim + uses: iffy/install-nim@v5 + with: + version: '2.0.0' + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev + + - name: Build project + run: make + + - name: Run basic test + run: | + echo 'console.log("Hello, World!");' > test.js + ./izem test.js | grep "Hello, World!" \ No newline at end of file