Skip to content

Commit 051982e

Browse files
committed
Simplify and standardize the process as well as merge build.yml into coverage.yml.
1 parent 012bd4c commit 051982e

3 files changed

Lines changed: 12 additions & 54 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
name: Coveralls
1+
name: Coverage
22

3-
on:
4-
push:
5-
branches:
6-
- $default_branch
7-
- sprint*-staging
8-
9-
pull_request:
10-
11-
workflow_dispatch:
3+
on: [ push, pull_request, workflow_dispatch ]
124

135
jobs:
146
java:
@@ -17,28 +9,30 @@ jobs:
179
steps:
1810
- uses: actions/checkout@v2
1911

20-
- name: "Cache Maven Dependencies"
12+
- name: "Maven Cache"
2113
uses: actions/cache@v2
2214
env:
23-
cache-name: lssss-cache-maven-dependencies
15+
cache-name: cache-maven-dependencies
2416
with:
2517
path: ~/.m2/repository
26-
key: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
27-
restore-keys: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
18+
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}
2819

2920
- name: "Setup Java"
3021
uses: actions/setup-java@v1
3122
with:
3223
java-version: 1.8
3324

34-
- name: "Running Tests"
25+
- name: "Maven Build"
26+
run: mvn test-compile -DskipTests=true -Dmaven.javadoc.skip=true -B -V
27+
28+
- name: "Maven Test"
3529
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true
3630

37-
- name: "To Coveralls (build lssss-${{ github.run_number }}-java)"
31+
- name: "Send to Coveralls (build ${{ github.run_number }}-java)"
3832
uses: MikeEdgar/github-action@raw_coverage_file
3933
with:
4034
github-token: ${{ secrets.github_token }}
41-
flag-name: lssss-${{ github.run_number }}-java
35+
flag-name: ${{ github.run_number }}-java
4236
parallel: false
4337
path-to-file: './target/coveralls.json'
4438
coverage-format: raw

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
[![Build Status](https://github.com/TAMULib/LibraryServiceStatusSystemService/workflows/Build/badge.svg)](https://github.com/TAMULib/LibraryServiceStatusSystemService/actions?query=workflow%3ABuild)
2-
[![Coverage Status](https://github.com/TAMULib/LibraryServiceStatusSystemService/workflows/Coveralls/badge.svg)](https://coveralls.io/github/TAMULib/LibraryServiceStatusSystemService?branch=master)
1+
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/LibraryServiceStatusSystemService/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/LibraryServiceStatusSystemService?branch=master)
32

43
# Library Service Status System
54

0 commit comments

Comments
 (0)