Skip to content

Commit 74d79c7

Browse files
committed
Issue 93: convert travis-ci to github-actions
1 parent ca18c42 commit 74d79c7

4 files changed

Lines changed: 95 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Coveralls
2+
3+
on:
4+
push:
5+
branches:
6+
- $default_branch
7+
- sprint*-staging
8+
9+
pull_request:
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
15+
node:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
java:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: "Cache Maven Dependencies"
28+
uses: actions/cache@v2
29+
env:
30+
cache-name: sage-cache-maven-dependencies
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
35+
36+
- name: "Setup Java"
37+
uses: actions/setup-java@v1
38+
with:
39+
java-version: 1.8
40+
41+
- name: "Building"
42+
run: mvn test-compile -DskipTests=true -Dmaven.javadoc.skip=true -B -V

.github/workflows/coveralls.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Coveralls
2+
3+
on:
4+
push:
5+
branches:
6+
- $default_branch
7+
- sprint*-staging
8+
9+
pull_request:
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
15+
node:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
java:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: "Cache Maven Dependencies"
28+
uses: actions/cache@v2
29+
env:
30+
cache-name: lssss-cache-maven-dependencies
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: ${{ runner.os }}-lssss-cache-maven-${{ hashFiles('**/pom.xml') }}
35+
36+
- name: "Setup Java"
37+
uses: actions/setup-java@v1
38+
with:
39+
java-version: 1.8
40+
41+
- name: "Running Tests"
42+
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true
43+
44+
- name: "To Coveralls (build lssss-${{ github.run_number }}-java)"
45+
uses: MikeEdgar/github-action@raw_coverage_file
46+
with:
47+
github-token: ${{ secrets.github_token }}
48+
flag-name: lssss-${{ github.run_number }}-java
49+
parallel: true
50+
path-to-file: './target/coveralls.json'
51+
coverage-format: raw

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Build Status](https://travis-ci.org/TAMULib/LibraryServiceStatusSystemService.svg?branch=master)](https://travis-ci.org/TAMULib/LibraryServiceStatusSystemService)
2-
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/LibraryServiceStatusSystemService/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/LibraryServiceStatusSystemService?branch=master)
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)
33

44
# Library Service Status System
55

0 commit comments

Comments
 (0)