pipeline {
agent {
docker {
image 'node'
}
stages {
stage('yarn install') {
steps {
sh 'yarn install --pure-lockfile --ignore-engines'
stage('Tests') {
parallel {
stage('eslint') {
sh 'yarn run eslint'
stage('webext_lint') {
sh 'yarn run webext_lint'
stage('htmllint') {
sh 'yarn run htmllint'
stage('build') {
sh 'yarn run build'
stage('Artefacts') {
archiveArtifacts 'web-ext-artifacts/'