diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8001c5f8..8fcd3974 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,11 +33,8 @@ jobs:
java-version: 21
cache: 'maven'
- - name: Install Playwright Browsers (UI tests)
- run: ./mvnw exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.classpathScope="test" -D exec.args="install --with-deps chromium"
-
- name: Build
- run: ./mvnw -Pcoverage dependency:go-offline clean verify
+ run: ./mvnw -Pcoverage dependency:go-offline clean verify -Dgroups="\!ui"
- name: Analyse with SonarCloud
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
@@ -58,13 +55,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- - name: Upload artifacts of failed tests
- uses: actions/upload-artifact@v4
- if: always()
- with:
- name: failed-ui-tests
- path: target/ui-test/**/FAILED-*
-
ui-test:
name: UI Test
runs-on: ubuntu-20.04
diff --git a/pom.xml b/pom.xml
index cacd9393..9fbe09d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -446,12 +446,7 @@
org.apache.maven.plugins
maven-failsafe-plugin
-
- none
-
-
- **/*UIIT.java
-
+ ui
diff --git a/src/test/java/de/focusshift/zeiterfassung/ui/extension/UiTest.java b/src/test/java/de/focusshift/zeiterfassung/ui/extension/UiTest.java
index 90346577..82837c0e 100644
--- a/src/test/java/de/focusshift/zeiterfassung/ui/extension/UiTest.java
+++ b/src/test/java/de/focusshift/zeiterfassung/ui/extension/UiTest.java
@@ -5,6 +5,7 @@
import com.microsoft.playwright.junit.Options;
import com.microsoft.playwright.junit.OptionsFactory;
import com.microsoft.playwright.junit.UsePlaywright;
+import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ContextConfiguration;
@@ -52,6 +53,7 @@
@UsePlaywright(UiTest.CustomOptions.class)
@ExtendWith({ PlaywrightTraceExtension.class, TestRecordVideoExtension.class })
@ContextConfiguration(initializers = UITestInitializer.class)
+@Tag("ui")
public @interface UiTest {
class CustomOptions implements OptionsFactory {