-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for Izem Runtime CI
- Loading branch information
1 parent
8917b55
commit ae8b6ba
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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: Install nim dependencies | ||
run: make deps | ||
|
||
- name: Build project | ||
run: make | ||
|
||
- name: Run basic test | ||
run: | | ||
echo 'console.log("Hello, World!");' > test.js | ||
./izem test.js | grep "Hello, World!" |