Skip to content

Commit 07d1459

Browse files
authored
GitHub actions (#77)
1 parent 762a433 commit 07d1459

File tree

3 files changed

+42
-34
lines changed

3 files changed

+42
-34
lines changed

.github/workflows/build-dev.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
braches: [dev, main ]
6+
pull_request:
7+
branches: [dev, main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
with:
16+
path: build_dir
17+
- uses: actions/setup-java@v2
18+
with:
19+
distribution: 'adopt'
20+
java-version: '8'
21+
check-latest: true
22+
- name: Gradle Build
23+
run: |
24+
cd $GITHUB_WORKSPACE/build_dir
25+
./gradlew --stacktrace build
26+
- name: Gradle Docs
27+
run: |
28+
cd $GITHUB_WORKSPACE/build_dir
29+
./gradlew --stacktrace docs
30+
- name: Codecov report
31+
run: |
32+
cd $GITHUB_WORKSPACE/build_dir
33+
./gradlew codeCoverageReport
34+
- name: Codecov
35+
uses: codecov/codecov-action@v1
36+
- name: Upload Archives
37+
run: |
38+
cd $GITHUB_WORKSPACE/build_dir
39+
./gradlew uploadArchives -PossrhUsername='${{ secrets.SONATYPE_USERNAME }}' -PossrhPassword='${{ secrets.SONATYPE_PASSWORD}}'
40+
if: steps.extract_branch.outputs.branch == 'main'

.travis.yml

-32
This file was deleted.

README.md

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

77
## Introduction
88

0 commit comments

Comments
 (0)