Skip to content

Commit

Permalink
Update CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ctubbsii committed Aug 4, 2020
1 parent 58d40dc commit 76c40ae
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 28 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# 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: mvn verify

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

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local maven repository
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ matrix.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ matrix.os }}-m2
- name: Build with Maven
run: mvn -B -V -e "-Dstyle.color=always" verify
env:
MAVEN_OPTS: -Djansi.force=true

17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,25 @@
limitations under the License.
-->

[![Build Status][travis_img]][travis_link] [![Maven Central][maven_img]][maven_link]
[![mvn verify][ci_img]][ci_link]
[![Maven Central][maven_img]][maven_link]
[![License][license_img]][license_link]

warbucks-maven-plugin
======================
# warbucks-maven-plugin

View this plugin's documentation at:
http://code.revelc.net/warbucks-maven-plugin
https://code.revelc.net/warbucks-maven-plugin

A Maven plugin to enforce the requirement for particular annotations (for
specified classes).

This plugin uses [Semantic Versioning 2.0.0][1] for its own versioning. Its
public API is the names of the goals and configuration options.

[1]: http://semver.org/spec/v2.0.0.html
[travis_img]: https://travis-ci.org/revelc/warbucks-maven-plugin.svg?branch=main
[travis_link]: https://travis-ci.org/revelc/warbucks-maven-plugin
[1]: https://semver.org/spec/v2.0.0.html
[ci_img]: https://github.com/revelc/warbucks-maven-plugin/workflows/mvn%20verify/badge.svg
[ci_link]: https://github.com/revelc/warbucks-maven-plugin/actions
[license_img]: https://img.shields.io/badge/license-Apache%202.0-blue.svg
[license_link]: https://github.com/revelc/warbucks-maven-plugin/blob/main/LICENSE
[maven_img]: https://maven-badges.herokuapp.com/maven-central/net.revelc.code/warbucks-maven-plugin/badge.svg
[maven_link]: https://maven-badges.herokuapp.com/maven-central/net.revelc.code/warbucks-maven-plugin

10 changes: 7 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
Expand All @@ -25,7 +25,7 @@
<packaging>maven-plugin</packaging>
<name>Warbucks Maven Plugin</name>
<description>A Maven plugin to enforce the requirement for particular annotations (for specified classes)</description>
<url>http://code.revelc.net/warbucks-maven-plugin</url>
<url>https://code.revelc.net/warbucks-maven-plugin</url>
<inceptionYear>2016</inceptionYear>
<organization>
<name>Revelc</name>
Expand All @@ -34,7 +34,7 @@
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
Expand All @@ -59,6 +59,10 @@
<system>GitHub</system>
<url>https://github.com/revelc/warbucks-maven-plugin/issues</url>
</issueManagement>
<ciManagement>
<system>GitHub</system>
<url>https://github.com/revelc/warbucks-maven-plugin/actions</url>
</ciManagement>
<distributionManagement>
<!-- https://issues.sonatype.org/browse/OSSRH-15142 -->
<repository>
Expand Down

0 comments on commit 76c40ae

Please sign in to comment.