Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 0708bdd

Browse files
committed
Made latestRelease only manually triggered. Implemented testing only workflow.
1 parent b2045ac commit 0708bdd

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

.github/workflows/latestRelease.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ name: Latest Release
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches: [ master ]
7-
paths:
8-
- 'src/**'
9-
- 'pom.xml'
10-
create:
11-
tag: [ v*.*.* ]
125

136
jobs:
147
Build_Docker_Image_on_Push:

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'src/**'
8+
- 'pom.xml'
9+
create:
10+
tag: [ v*.*.* ]
11+
12+
jobs:
13+
Build_Docker_Image_on_Push:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
uses: actions/checkout@v1
18+
-
19+
name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: '11.0.8'
23+
architecture: x64
24+
-
25+
name: Setup database for tests.
26+
run: |
27+
docker create -p 27017:27017 --name FileFighterDB mongo:latest
28+
docker start FileFighterDB
29+
-
30+
name: Run all Tests
31+
run: mvn clean test -f pom.xml
32+
-
33+
name: Upload CodeCov.
34+
run: bash <(curl -s https://codecov.io/bash) -Z

0 commit comments

Comments
 (0)