Skip to content

Commit

Permalink
Covert ci from travis to github build.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Sep 16, 2024
1 parent 1194b8b commit 5070546
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 33 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Support longpaths
run: git config --global core.longpaths true
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B -U spotless:check
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Support longpaths
run: git config --global core.longpaths true
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B -U clean install
- name: Build Javadoc
run: mvn javadoc:jar
- name: Test Aggregate
run: mvn javadoc:test-aggregate
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.duraspace</groupId>
<artifactId>bagit-support</artifactId>
<name>bagit-support</name>
<version>1.1.0</version>
<version>2.0.0-SNAPSHOT</version>
<description>Libraries to provide support for the use of Bagit bags and Bagit Profiles</description>
<url>https://github.com/duraspace/bagit-support</url>

Expand Down

0 comments on commit 5070546

Please sign in to comment.