Add Jest tests to the lint job

Change-Id: If0d63bc11f264e6e7287afdd0940d0f3b4ac1cf7
diff --git a/.zuul.yaml b/.zuul.yaml
index cf9c651..6965d34 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -11,6 +11,7 @@
     parent: web-ext-lint
     pre-run: playbooks/lint/pre.yaml
     run: playbooks/lint/run.yaml
+    post-run: playbooks/lint/post.yaml
     irrelevant-files:
       - ".github/.*"
       - "docs/.*"
diff --git a/playbooks/lint/post.yaml b/playbooks/lint/post.yaml
new file mode 100644
index 0000000..b852ed6
--- /dev/null
+++ b/playbooks/lint/post.yaml
@@ -0,0 +1,7 @@
+- name: Get Jest log
+  hosts: all
+  roles:
+    - fetch-log-file
+  vars:
+    sourceFile: "{{ zuul.project.src_dir }}/out/jest-log.txt"
+    logFileName: "jest-log.txt"
diff --git a/playbooks/lint/run.yaml b/playbooks/lint/run.yaml
index a82cfc6..7a217b8 100644
--- a/playbooks/lint/run.yaml
+++ b/playbooks/lint/run.yaml
@@ -4,3 +4,4 @@
       make_target: build_test_extension
     - role: web-ext-lint
       source_dir: "dist/gecko"
+    - role: test
diff --git a/roles/test/tasks/main.yaml b/roles/test/tasks/main.yaml
new file mode 100644
index 0000000..8430fc7
--- /dev/null
+++ b/roles/test/tasks/main.yaml
@@ -0,0 +1,8 @@
+- name: Run tests
+  shell:
+    cmd: |
+      set -euxo pipefail
+      node --experimental-vm-modules ./node_modules/jest/bin/jest.js --ci |& tee out/jest-log.txt
+    chdir: "{{ zuul.project.src_dir }}"
+    executable: /bin/bash
+  changed_when: false