Repository: provectus/kafka-ui
Issue: Find a way to make certain workflows required
Labels: type/enhancement
scope/infrastructure

Workflows like the following:
`e2e-checks`
`backend`
`frontend`
should have status `passed` to be able to merge a PR which has these workflows triggered.
The things is, setting these workflows as required makes PRs which don't have these workflows launched blocked.

https://github.com/marketplace/actions/workflow-status

Issue comments:

Pull request review comments:

Patch that resolved the issue:
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 5df7b74bc08..677d4407a1d 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -5,7 +5,7 @@ on:
     paths:
       - 'kafka-ui-api/**'
 jobs:
-  build:
+  build-and-test:
     runs-on: ubuntu-latest
     steps:
       - name: Cache local Maven repository
diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml
new file mode 100644
index 00000000000..0388bf21abc
--- /dev/null
+++ b/.github/workflows/documentation.yaml
@@ -0,0 +1,23 @@
+name: Documentation
+on:
+  pull_request:
+    types:
+      - opened
+      - labeled
+      - reopened
+      - synchronize
+    paths:
+      - 'documentation/*'
+      - './*.md'
+jobs:
+  build-and-test:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Check URLs in files
+        uses: urlstechie/urlchecker-action@0.0.25
+        with:
+          exclude_patterns: localhost,127.0.,192.168.
+          exclude_urls: https://api.server,https://graph.microsoft.com/User.Read
+          print_all: false
+          file_types: .md
diff --git a/.github/workflows/e2e-checks.yaml b/.github/workflows/e2e-checks.yaml
index b6c44e72e1b..6ff3723258c 100644
--- a/.github/workflows/e2e-checks.yaml
+++ b/.github/workflows/e2e-checks.yaml
@@ -8,7 +8,7 @@ on:
       - 'kafka-ui-react-app/**'
       - 'kafka-ui-e2e-checks/**'
 jobs:
-  build:
+  build-and-test:
     runs-on: ubuntu-latest
     steps:
       - name: Cache local Maven repository
diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml
index 1ba60f511b5..ba7f5c6cfd6 100644
--- a/.github/workflows/frontend.yaml
+++ b/.github/workflows/frontend.yaml
@@ -9,7 +9,7 @@ on:
     - 'kafka-ui-contract/**'
     - 'kafka-ui-react-app/**'
 jobs:
-  npm-test:
+  build-and-test:
     env:
       CI: true
       NODE_ENV: dev


Test patch:
diff --git a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/SmokeTests.java b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/SmokeTests.java
index 1719b0229ca..af88cc03887 100644
--- a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/SmokeTests.java
+++ b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/SmokeTests.java
@@ -3,9 +3,12 @@
 import com.provectus.kafka.ui.base.BaseTest;
 import io.qameta.allure.Issue;
 import lombok.SneakyThrows;
+import org.junit.Ignore;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
 
+@Disabled // TODO #1480
 public class SmokeTests extends BaseTest {
     @Test
     @SneakyThrows
diff --git a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/ConnectorsTests.java b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/ConnectorsTests.java
index 33516fa289e..468c087d495 100644
--- a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/ConnectorsTests.java
+++ b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/ConnectorsTests.java
@@ -5,8 +5,10 @@
 import com.provectus.kafka.ui.helpers.ApiHelper;
 import com.provectus.kafka.ui.helpers.Helpers;
 import lombok.SneakyThrows;
+import org.junit.Ignore;
 import org.junit.jupiter.api.*;
 
+@Disabled // TODO #1480
 public class ConnectorsTests extends BaseTest {
 
     public static final String LOCAL = "local";
diff --git a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
index 3fd2640d097..670e0bcbe92 100644
--- a/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
+++ b/kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/tests/TopicTests.java
@@ -7,8 +7,9 @@
 import org.junit.jupiter.api.*;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.Disabled;
 
-
+@Disabled // TODO #1480
 public class TopicTests extends BaseTest {
 
     public static final String NEW_TOPIC = "new-topic";