Skip to content

Commit f90b2c4

Browse files
committed
Update IDE versions for tests
1 parent eec5ce9 commit f90b2c4

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

.github/workflows/run-ui-tests.yml

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,18 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
os: [ macos-latest, ubuntu-latest, windows-latest ]
46-
ideDate: [ IC-2022.2, IC-2022.3, IC-2023.1, IC-2023.2 ]
47-
include:
48-
# - ideDate: IC-EAP # TODO: Run this variant weekly
49-
# ide: IC
50-
# version: LATEST_EAP
51-
- ideDate: IC-2023.2
52-
ide: IC
53-
version: 2023.2.3 # released on 11.10.2023, major from 26.07.2023
54-
- ideDate: IC-2023.1
55-
ide: IC
56-
version: 2023.1.5 # released on 25.07.2023, major from 28.03.2023
57-
- ideDate: IC-2022.3
58-
ide: IC
59-
version: 2022.3.3 # released on 8.03.2023, major from 30.11.2022
60-
- ideDate: IC-2022.2
61-
ide: IC
62-
version: 2022.2.5 # released on 15.03.2023, major from 26.07.2022
63-
46+
ideDate: # Up to 2 versions per year, initial major ver release date should be not older than a year
47+
# - IC-LATEST_EAP # TODO: Run this variant weekly
48+
- IC-2023.3.2 # released on 20.12.2023, major from 06.12.2023
49+
- IC-2023.1.5 # released on 25.07.2023, major from 28.03.2023
50+
- IC-2022.3.3 # released on 8.03.2023, major from 30.11.2022
51+
# - PC-LATEST_EAP # TODO: Run this variant weekly
52+
- PC-2023.3.2 # released on 20.12.2023, major from 06.12.2023
53+
- PC-2023.1.4 # released on 13.07.2023, major from 30.03.2023
54+
- PC-2022.3.3 # released on 10.03.2023, major from 01.12.2022
6455
# Versions should match https://jb.gg/android-studio-releases-list.xml
65-
# TODO:
66-
# - ideDate: AI-2023
67-
# ide: AI
68-
# version: 2023.1.1 # released on 27.09.2023
69-
# - ideDate: AI-2022
70-
# ide: AI
71-
# version: 2022.3.1 # released on 28.09.2023
72-
# - ideDate: AI-2021
73-
# ide: AI
74-
# version: 2021.3.1.17 # released on 13.10.2022
7556

57+
include:
7658
- os: ubuntu-latest
7759
runTests: |
7860
export DISPLAY=:99.0
@@ -89,11 +71,18 @@ jobs:
8971
reportName: ui-tests-windows
9072

9173
env:
92-
IDE_CODE: ${{ matrix.ide }}
93-
IDE_VERSION: ${{ matrix.version }}
9474
PLUGIN_PATH: "${{ github.workspace }}/${{ needs.getPlugin.outputs.path }}"
9575
steps:
96-
76+
- uses: actions/github-script@v7
77+
id: prepare-IDE_CODE
78+
with:
79+
script: return "${{ matrix.ideDate }}".split("-", 2)[0]
80+
result-encoding: string
81+
- uses: actions/github-script@v7
82+
id: prepare-IDE_VERSION
83+
with:
84+
script: return "${{ matrix.ideDate }}".split("-", 2)[1]
85+
result-encoding: string
9786
- name: Setup FFmpeg
9887
uses: FedericoCarboni/setup-ffmpeg@v2
9988
with:
@@ -104,13 +93,19 @@ jobs:
10493
# Setup Java environment for the next steps
10594
- name: Setup Java
10695
uses: actions/setup-java@v3
96+
env:
97+
IDE_CODE: ${{ steps.prepare-IDE_CODE.outputs.result }}
98+
IDE_VERSION: ${{ steps.prepare-IDE_VERSION.outputs.result }}
10799
with:
108100
distribution: zulu
109101
java-version: 11
110102

111103
# Setup Gradle
112104
- name: Setup Gradle
113105
uses: gradle/gradle-build-action@v2
106+
env:
107+
IDE_CODE: ${{ steps.prepare-IDE_CODE.outputs.result }}
108+
IDE_VERSION: ${{ steps.prepare-IDE_VERSION.outputs.result }}
114109
with:
115110
gradle-home-cache-cleanup: true
116111

@@ -128,6 +123,9 @@ jobs:
128123

129124
# Run tests
130125
- name: Tests
126+
env:
127+
IDE_CODE: ${{ steps.prepare-IDE_CODE.outputs.result }}
128+
IDE_VERSION: ${{ steps.prepare-IDE_VERSION.outputs.result }}
131129
run: ${{ matrix.runTests }}
132130

133131
# Collect Tests Result of failed tests

test-noj.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
IDE_CODE=PC IDE_VERSION=2022.3.3 PLUGIN_PATH="$(ls "$(pwd)"/plugin/build/distributions/*.zip)" ./gradlew :plugin-test:test "$@"
2+
IDE_CODE=PC IDE_VERSION=2023.3.2 PLUGIN_PATH="$(ls "$(pwd)"/plugin/build/distributions/*.zip)" ./gradlew :plugin-test:test "$@"

0 commit comments

Comments
 (0)