Skip to content

Commit

Permalink
GitHub actions (Islandora#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
elizoller authored and emetsger committed Jun 8, 2021
1 parent c5f1702 commit 5bbc9a5
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 34 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
braches: [dev, main ]
pull_request:
branches: [dev, main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: build_dir
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
check-latest: true
- name: Gradle Build
run: |
cd $GITHUB_WORKSPACE/build_dir
./gradlew --stacktrace build
- name: Gradle Docs
run: |
cd $GITHUB_WORKSPACE/build_dir
./gradlew --stacktrace docs
- name: Codecov report
run: |
cd $GITHUB_WORKSPACE/build_dir
./gradlew codeCoverageReport
- name: Codecov
uses: codecov/codecov-action@v1
- name: Upload Archives
run: |
cd $GITHUB_WORKSPACE/build_dir
./gradlew uploadArchives -PossrhUsername='${{ secrets.SONATYPE_USERNAME }}' -PossrhPassword='${{ secrets.SONATYPE_PASSWORD}}'
if: steps.extract_branch.outputs.branch == 'main'
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ![Alpaca](https://cloud.githubusercontent.com/assets/2371345/15409648/16c140b4-1dec-11e6-81d9-41929bc83b1f.png) Alpaca
[![Build Status](https://travis-ci.com/Islandora/Alpaca.svg?branch=master)](https://travis-ci.com/Islandora/Alpaca)
[![Build Status](https://github.com/islandora/Alpaca/actions/workflows/build-dev.yml/badge.svg)](https://github.com/Islandora/Alpaca/actions)
[![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](./LICENSE)
[![codecov](https://codecov.io/gh/Islandora/Alpaca/branch/master/graph/badge.svg)](https://codecov.io/gh/Islandora/Alpaca)
[![codecov](https://codecov.io/gh/Islandora/Alpaca/branch/master/graphs/badge.svg)](https://codecov.io/gh/Islandora/Alpaca)

## Introduction

Expand Down

0 comments on commit 5bbc9a5

Please sign in to comment.