1
0
mirror of synced 2026-01-19 09:07:23 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/build.gradle
Tim Roes bec8ef2f8e 🪟🔧 Fix node version on CI (#20287)
* Fix node version on CI

* Use lts/gallium

* Restore setup-node actions where needed

* Package-lock changes

* Regenerate package-lock.json
2022-12-12 12:34:12 +01:00

29 lines
841 B
Groovy

plugins {
id "base"
id "com.github.node-gradle.node" version "3.3.0"
}
def nodeVersion = new File("${projectDir}/.nvmrc").text.trim();
node {
download = true
version = nodeVersion
}
task e2etest(type: NpmTask) {
dependsOn npmInstall
// If the cypressWebappKey property has been set from the outside (see tools/bin/e2e_test.sh)
// we'll record the cypress session, otherwise we're not recording
def recordCypress = project.hasProperty('cypressWebappKey') && project.getProperty('cypressWebappKey')
if (recordCypress) {
environment = [CYPRESS_KEY: project.getProperty('cypressWebappKey')]
args = ['run', 'cypress:ci:record']
} else {
args = ['run', 'cypress:ci']
}
inputs.files fileTree('cypress')
inputs.file 'package.json'
inputs.file 'package-lock.json'
}