Skip to content

Commit f88e842

Browse files
authored
Merge pull request #94 from TAMULib/sprint-action-93-yml
Issue 93: convert travis-ci to github-actions
2 parents ca18c42 + 5d2b9a1 commit f88e842

3 files changed

Lines changed: 33 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
java:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: "Maven Cache"
13+
uses: actions/cache@v2
14+
with:
15+
path: ~/.m2/repository
16+
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}
17+
18+
- name: "Setup Java"
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 1.8
22+
23+
- name: "Maven Test"
24+
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true
25+
26+
- name: "Send to Coveralls (build java-${{ github.run_number }})"
27+
uses: MikeEdgar/github-action@raw_coverage_file
28+
with:
29+
github-token: ${{ secrets.github_token }}
30+
path-to-file: './target/coveralls.json'
31+
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://coveralls.io/repos/github/TAMULib/LibraryServiceStatusSystemService/badge.svg)](https://coveralls.io/github/TAMULib/LibraryServiceStatusSystemService)
33

44
# Library Service Status System
55

0 commit comments

Comments
 (0)