From 095075e924b0b7a5af825cf3bc2399b7f6e0f8a9 Mon Sep 17 00:00:00 2001 From: magdziarek Date: Thu, 12 May 2022 15:59:12 +0200 Subject: [PATCH] feat: add tests for supported Node, Gradle and JDK versions --- .circleci/config.yml | 208 +++++-------------------------------------- 1 file changed, 24 insertions(+), 184 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e5c71d2..100078d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,19 @@ windows_defaults: &windows_defaults executor: name: win/default +test_matrix_unix: &test_matrix_unix + matrix: + parameters: + node_version: ['12', '16'] + jdk_version: ['8.0.292.j9-adpt'] + gradle_version: ['3.4.1', '4.10', '5.5', '6.2.1'] +test_matrix_win: &test_matrix_win + matrix: + parameters: + node_version: ['12', '16'] + jdk_version: ['8'] + gradle_version: ['4.10', '5.5', '6.2.1'] + commands: install_deps: description: Install dependencies @@ -53,8 +66,12 @@ commands: command: npm --version install_gradle_windows: description: Install gradle + parameters: + gradle_version: + type: string + default: '' steps: - - run: choco install gradle --version=6.0 + - run: choco install gradle --version=<< parameters.gradle_version >> install_sdkman: description: Install SDKMAN steps: @@ -108,7 +125,6 @@ jobs: - run: name: Run lint command: npm run lint - test-windows: <<: *defaults <<: *windows_defaults @@ -121,7 +137,8 @@ jobs: node_version: << parameters.node_version >> - install_jdk_windows: jdk_version: << parameters.jdk_version >> - - install_gradle_windows + - install_gradle_windows: + gradle_version: << parameters.gradle_version >> - install_deps - show_node_version - run: @@ -172,195 +189,18 @@ workflows: branches: ignore: - master - - # UNIX tests - test-unix: - name: Unix Tests for Gradle=6.0 JDK=13 Node=16 - context: nodejs-install - gradle_version: '6.0' - jdk_version: '13.0.2.j9-adpt' - node_version: '16' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=6.0 JDK=13 Node=14 - context: nodejs-install - gradle_version: '6.0' - jdk_version: '13.0.2.j9-adpt' - node_version: '14.17.6' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=6.0 JDK=13 Node=12 - context: nodejs-install - gradle_version: '6.0' - jdk_version: '13.0.2.j9-adpt' - node_version: '12' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=6.0 JDK=12 Node=10 - context: nodejs-install - gradle_version: '6.0' - jdk_version: '12.0.2.j9-adpt' - node_version: '10' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=6.0 JDK=11 Node=8 - context: nodejs-install - gradle_version: '6.0' - jdk_version: '11.0.11.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=2.14 JDK=8 Node=8 - context: nodejs-install - gradle_version: '2.14' - jdk_version: '8.0.292.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=3.4.1 JDK=8 Node=8 - context: nodejs-install - gradle_version: '3.4.1' - jdk_version: '8.0.292.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=4.10.3 JDK=8 Node=8 - context: nodejs-install - gradle_version: '4.10.3' - jdk_version: '8.0.292.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=4.10.3 JDK=11 Node=8 - context: nodejs-install - gradle_version: '4.10.3' - jdk_version: '11.0.11.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=4.10.3 JDK=13 Node=8 - context: nodejs-install - gradle_version: '4.10.3' - jdk_version: '13.0.2.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=5.3.1 JDK=8 Node=8 - context: nodejs-install - gradle_version: '5.3.1' - jdk_version: '8.0.292.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=5.3.1 JDK=11 Node=8 - context: nodejs-install - gradle_version: '5.3.1' - jdk_version: '11.0.11.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-unix: - name: Unix Tests for Gradle=5.6.4 JDK=12 Node=8 - context: nodejs-install - gradle_version: '5.6.4' - jdk_version: '12.0.2.j9-adpt' - node_version: '8' - requires: - - Lint - filters: - branches: - ignore: - - master - - # Windows - - test-windows: - name: Windows Tests for JDK=8 Node=8 - context: nodejs-install - jdk_version: '8' - node_version: '8.17.0' - requires: - - Lint - filters: - branches: - ignore: - - master - - test-windows: - name: Windows Tests for JDK=8 Node=10 + name: Test OS=Unix Node=<> JDK=<> Gradle=<> context: nodejs-install - jdk_version: '8' - node_version: '10.21.0' - requires: - - Lint + <<: *test_matrix_unix filters: branches: ignore: - master - test-windows: - name: Windows Tests for JDK=8 Node=12 + name: Test OS=Windows Node=<> JDK=<> Gradle=<> context: nodejs-install - jdk_version: '8' - node_version: '12.0.0' - requires: - - Lint + <<: *test_matrix_win filters: branches: ignore: