Skip to content

Commit 30be55f

Browse files
committed
Testing GH Actions
1 parent 28dd6b1 commit 30be55f

File tree

3 files changed

+40
-12
lines changed

3 files changed

+40
-12
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
credentials.propertiesn
1+
credentials.properties
22
target/
33
!.mvn/wrapper/maven-wrapper.jar
44
!**/src/main/**/target/

pom.xml

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,51 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
76
<groupId>org.example</groupId>
87
<artifactId>Automation</artifactId>
98
<version>1.0-SNAPSHOT</version>
10-
119
<properties>
1210
<maven.compiler.source>11</maven.compiler.source>
1311
<maven.compiler.target>11</maven.compiler.target>
1412
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
1613
</properties>
17-
14+
<build>
15+
<plugins>
16+
<plugin>
17+
<groupId>org.apache.maven.plugins</groupId>
18+
<artifactId>maven-jar-plugin</artifactId>
19+
<configuration>
20+
<archive>
21+
<manifest>
22+
<addClasspath>true</addClasspath>
23+
<classpathPrefix>lib/</classpathPrefix>
24+
<mainClass>org.example.Main</mainClass>
25+
</manifest>
26+
</archive>
27+
</configuration>
28+
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-shade-plugin</artifactId>
32+
<version>3.5.0</version>
33+
<executions>
34+
<execution>
35+
<phase>package</phase>
36+
<goals>
37+
<goal>shade</goal>
38+
</goals>
39+
<configuration>
40+
<transformers>
41+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
42+
<mainClass>org.example.Main</mainClass>
43+
</transformer>
44+
</transformers>
45+
</configuration>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
</plugins>
50+
</build>
1851
<dependencies>
1952
<dependency>
2053
<groupId>org.seleniumhq.selenium</groupId>
@@ -36,10 +69,5 @@
3669
<artifactId>junit-jupiter</artifactId>
3770
<version>5.10.0</version>
3871
</dependency>
39-
40-
4172
</dependencies>
42-
43-
44-
4573
</project>

src/main/java/org/example/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public static void randomSleep(int sleep) {
4949
driver = new ChromeDriver();
5050
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
5151
js = (JavascriptExecutor) driver;
52-
MUST_NOT_HAVE = new ArrayList<String>(Arrays.asList("architect", "devops", "principal", "lead", "net", "nodejs", "w2", "node", "js", "c"));
52+
MUST_NOT_HAVE = new ArrayList<String>(Arrays.asList("architect", "service", "servicenow", "devops", "principal", "lead", "net", "nodejs", "w2", "node", "js", "c"));
5353
MUST_HAVE = new ArrayList<String>(
5454
Arrays.asList("senior", "java", "full", "stack", "microservices", "software", "back", "front", "backend", "spring", "boot", "frontend"));
5555
scanner = new Scanner(System.in);
5656
rand = new Random();
5757
Properties properties = new Properties();
5858
FileInputStream in = null;
5959
try {
60-
in = new FileInputStream("/Users/pheonix/IdeaProjects/Automation/credentials.properties");
60+
in = new FileInputStream("credentials.properties");
6161
properties.load(in);
6262
in.close();
6363
} catch (FileNotFoundException e) {

0 commit comments

Comments
 (0)