1
0
mirror of synced 2026-01-04 00:04:25 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/build.gradle
Tim Roes 2e60a1cc1e Improve Gradle build and fix storybook (#13719)
* Improve Gradle build and fix storybook

* Run all copy tasks after copyDocker
2022-06-13 21:36:31 +02:00

29 lines
838 B
Groovy

plugins {
id "base"
id "com.github.node-gradle.node" version "3.3.0"
}
def nodeVersion = System.getenv('NODE_VERSION') ?: '16.15.1'
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'
}