From 093cc742730889de34ff7aaa164903be63f3b3e4 Mon Sep 17 00:00:00 2001
From: Moonbeam69 <162564758+Moonbeam69@users.noreply.github.com>
Date: Mon, 13 May 2024 13:28:23 +0100
Subject: [PATCH] updated yml to run on self-hosted
---
.github/workflows/CICD_Main_Pipeline.yml | 10 +++++-----
pom.xml | 1 -
src/test/java/Playwright1Test.java | 1 +
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/CICD_Main_Pipeline.yml b/.github/workflows/CICD_Main_Pipeline.yml
index f56059a..b884e42 100644
--- a/.github/workflows/CICD_Main_Pipeline.yml
+++ b/.github/workflows/CICD_Main_Pipeline.yml
@@ -1,4 +1,4 @@
-name: Build & Test in DevVer and SIT
+name: Bukd & Test in DevVer and SIT
env:
ACTIONS_STEP_DEBUG: true
@@ -12,7 +12,7 @@ on:
jobs:
DevVer:
- runs-on: [self-hosted, OPENSUSE2]
+ runs-on: [self-hosted]
strategy:
matrix:
browser: [ chrome ]
@@ -55,7 +55,7 @@ jobs:
path: target/surefire-reports/
DevInt:
- runs-on: [self-hosted, opensuse]
+ runs-on: [self-hosted]
needs: DevVer
strategy:
matrix:
@@ -77,7 +77,7 @@ jobs:
path: target/surefire-reports/
SIT:
- runs-on: [self-hosted, windows]
+ runs-on: [self-hosted]
needs: DevInt
strategy:
matrix:
@@ -107,7 +107,7 @@ jobs:
path: target/surefire-reports/
Production:
- runs-on: [self-hosted, OPENSUSE2]
+ runs-on: [self-hosted]
needs: SIT
steps:
- uses: actions/checkout@v4
diff --git a/pom.xml b/pom.xml
index af154d6..fda06dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,6 @@
CICD_Project
v1.0
-
diff --git a/src/test/java/Playwright1Test.java b/src/test/java/Playwright1Test.java
index f7dfec4..f9ce1a8 100644
--- a/src/test/java/Playwright1Test.java
+++ b/src/test/java/Playwright1Test.java
@@ -31,6 +31,7 @@ static void setup() {
logger.info("No browser configured with " + browser);
}
}
+
@Test
void tc1_Navigation(TestInfo testInfo) {
long startTime = System.currentTimeMillis();