Skip to content

Commit

Permalink
Merge pull request #145 from TAMULib/sprint-action-141-oneBuildYml
Browse files Browse the repository at this point in the history
Issue #141 Github Actions for Project Management Service
  • Loading branch information
wwelling committed Feb 3, 2021
2 parents dfc4cd4 + 6865d48 commit 0748d30
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 22 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,41 @@
name: Build

on: [ push, pull_request, workflow_dispatch ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: "Maven Cache"
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}

- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: "Maven Test"
run: mvn clean test cobertura:cobertura jacoco:report coveralls:report -DdryRun=true

- name: "Coverage Report"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './target/coveralls.json'
coverage-format: raw

- name: "Deploy GH-Pages"
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
github_token: ${{ secrets.github_token }}
branch: gh-pages
folder: target/generated-docs
clean: true
single_commit: true
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
@@ -1,4 +1,6 @@
[![Build Status](https://travis-ci.org/TAMULib/ProjectManagementService.svg?branch=master)](https://travis-ci.org/TAMULib/ProjectManagementService) [![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementService/badge.svg?branch=master)](https://coveralls.io/github/TAMULib/ProjectManagementService?branch=master)
[![Build Status](https://github.com/TAMULib/ProjectManagementService/workflows/Build/badge.svg)](https://github.com/TAMULib/ProjectManagementService/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/TAMULib/ProjectManagementService/badge.svg)](https://coveralls.io/github/TAMULib/ProjectManagementService)
[![GHPages Status](https://github.com/TAMULib/ProjectManagementService/workflows/GHPages/badge.svg)](https://github.com/TAMULib/ProjectManagementService/actions?query=workflow%3AGHPages)

# Product Management Service
The Product Management Service is designed to connect our Library Webservice Status Application to our Version Management Software.
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -30,6 +30,12 @@
<id>tamu-snapshots</id>
<url>https://artifacts.library.tamu.edu/repository/maven-snapshots/</url>
</repository>

<repository>
<id>mvnrepository</id>
<name>Maven Central Repository</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>

<dependencies>
Expand Down

0 comments on commit 0748d30

Please sign in to comment.