Add gitlab ci workflow
diff --git a/.gitignore b/.gitignore
index 5b02262..06c46d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -131,3 +131,6 @@
 
 # binaries
 bin/
+
+# gitlab-ci-local
+.gitlab-ci-local/.gitignore
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..63792b4
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+image: node:latest
+
+stages:
+  - test
+  - package
+
+cache:
+  paths:
+    - node_modules/
+
+before_script:
+  - npm install
+
+test:
+  stage: test
+  script:
+    - npm test
+
+package:
+  stage: package
+  script:
+    - npm run pkg-linux
+    - npm run pkg-macos
+  artifacts:
+    paths:
+      - bin/