summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonny Piers <sonny@fastmail.net>2021-01-21 14:47:31 +0100
committerSonny Piers <sonny@fastmail.net>2021-01-21 17:51:52 +0100
commit5ddb98c1268ba9ad79c5caa9b527b244bc4f29f3 (patch)
treea6382f3dc998de01f953a36fabeaab4390dedfc4
parent89d7d2f2517e1c717d759183aac4349c423c1c6b (diff)
downloadepiphany-5ddb98c1268ba9ad79c5caa9b527b244bc4f29f3.tar.gz
Run ESLint on CI
Inspired by https://gitlab.gnome.org/GNOME/gnome-sound-recorder/-/merge_requests/43
-rw-r--r--.gitlab-ci.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 669a33331..e3cd3364a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@ variables:
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
FLATPAK_MODULE: 'epiphany'
APP_ID: 'org.gnome.Epiphany.Devel'
+ ESLINT_LOG: "eslint-report.txt"
stages:
- test
@@ -19,9 +20,15 @@ check-code-style:
image: alpine:latest
interruptible: true
before_script:
- - apk update && apk add uncrustify bash python3
+ - apk update && apk add uncrustify bash python3 nodejs nodejs-npm
+ - npm install -g eslint
script:
- bash data/check-code-style
+ - eslint -o eslint-report.txt --no-color embed/web-process-extension/resources/js/ || { cat $ESLINT_LOG; false; }
+ artifacts:
+ paths:
+ - ${ESLINT_LOG}
+ when: on_failure
flatpak:
extends: '.flatpak'