Skip to content

Commit

Permalink
Merge pull request #1679 from jenkinsci/everything
Browse files Browse the repository at this point in the history
11.0.0
  • Loading branch information
uhafner authored Feb 23, 2024
2 parents 91f563b + 4decb5a commit 6b08a83
Show file tree
Hide file tree
Showing 162 changed files with 2,690 additions and 4,241 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: 'GitHub CI'
on:
push:
branches:
- master
- main
pull_request:

Expand All @@ -28,10 +27,12 @@ jobs:
check-latest: true
cache: 'maven'
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Build with Maven
env:
BROWSER: chrome-container
run: mvn -V --color always -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'
run: |
cd plugin
mvn -V --color always -ntp clean verify '-Djenkins.test.timeout=5000' '-Dgpg.skip'
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
cache: maven

- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6

Expand Down
163 changes: 16 additions & 147 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Run UI tests'
name: 'UI Tests'

on:
push:
Expand All @@ -7,163 +7,32 @@ on:
pull_request:

jobs:
details-tab:
runs-on: [ubuntu-latest]
name: Details tab UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the details tabs
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=DetailsTabUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

dashboard-view:
runs-on: [ubuntu-latest]
name: Dashboard view UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the dashboard view
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=DashboardViewPortletUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

freestyle-configuration:
runs-on: [ubuntu-latest]
name: Freestyle configuration UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the freestyle configuration
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=FreeStyleConfigurationUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

pipeline-snippet-generator:
runs-on: [ubuntu-latest]
name: Pipeline snippet configurator UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the pipeline snippet configurator
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=SnippetGeneratorUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

global-configuration:
runs-on: [ubuntu-latest]
name: Global configuration UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for Jenkins' global configuration
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=GlobalConfigurationUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

issues-column:
runs-on: [ubuntu-latest]
name: Issues column UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the issues column
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=IssuesColumnUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1
ui-tests:
strategy:
fail-fast: false
matrix:
test: [ DetailsTabUiTest, FreeStyleConfigurationUiTest, GlobalConfigurationUiTest, IssuesColumnUiTest, SnippetGeneratorUiTest, TrendChartsUiTest, WarningsPluginUiTest, SmokeTests ]
browser: [ firefox-container, chrome-container ]

trend-charts:
runs-on: [ubuntu-latest]
name: Trend charts UI tests
name: Run UI tests `${{ matrix.test }}` with browser ${{ matrix.browser }}

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '21'
check-latest: true
cache: 'maven'
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run UI tests for the trend charts
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=TrendChartsUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

miscellaneous:
runs-on: [ubuntu-latest]
name: Miscellaneous UI tests

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
distribution: 'temurin'
java-version: '11'
check-latest: true
cache: 'maven'
maven-version: 3.9.6
- name: Build warnings plugin and download dependencies
run: mvn -V --color always -ntp verify -Pskip --file plugin/pom.xml -Dgpg.skip
- name: Run miscellaneous UI tests of the warnings plugin
- name: Run UI tests for the details tabs
env:
BROWSER: firefox-container
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=TrendChartsUiTest -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1

BROWSER: ${{ matrix.browser }}
run: mvn -V --color always -ntp test --file ui-tests/pom.xml -Dtest=${{ matrix.test }} -Dgpg.skip -Dsurefire.rerunFailingTestsCount=1
Loading

0 comments on commit 6b08a83

Please sign in to comment.