Skip to content

Commit 5360a59

Browse files
Merge pull request #114 from mojohaus/feature/github-actions
Switch from Travis to GitHub Actions
2 parents f7fb133 + aeaf25a commit 5360a59

File tree

9 files changed

+92
-25
lines changed

9 files changed

+92
-25
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/release-drafter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_extends: .github
2+
tag-template: buildnumber-maven-plugin-$NEXT_MINOR_VERSION

.github/workflows/maven.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: GitHub CI
19+
20+
on: [push, pull_request]
21+
22+
jobs:
23+
build:
24+
25+
strategy:
26+
matrix:
27+
os: [ubuntu-latest]
28+
java: [8, 11, 17]
29+
jdk: [temurin]
30+
include:
31+
- java: 11
32+
os: windows-latest
33+
jdk: temurin
34+
- java: 11
35+
os: macos-latest
36+
jdk: temurin
37+
fail-fast: false
38+
39+
runs-on: ${{ matrix.os }}
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-java@v2
44+
with:
45+
distribution: ${{ matrix.jdk }}
46+
java-version: ${{ matrix.java }}
47+
cache: 'maven'
48+
49+
- name: Build with Maven
50+
run: mvn clean verify -e -B -V javadoc:javadoc site site:stage

.github/workflows/release-drafter.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Release Drafter
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
update_release_draft:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: release-drafter/[email protected]
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Close stale PR'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v4
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
14+
days-before-stale: 365
15+
days-before-pr-close: 30

.travis.yml

-22
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![The MIT License](https://img.shields.io/github/license/mojohaus/build-helper-maven-plugin.svg?label=License)](https://opensource.org/licenses/MIT)
44
[![Maven Central](https://img.shields.io/maven-central/v/org.codehaus.mojo/build-helper-maven-plugin.svg?label=Maven%20Central)](http://search.maven.org/#search%7Cga%7C1%7Cbuild-helper-maven-plugin)
5-
[![Build Status](https://travis-ci.org/mojohaus/build-helper-maven-plugin.svg?branch=master)](https://travis-ci.org/mojohaus/build-helper-maven-plugin)
5+
[![Build Status](https://github.com/mojohaus/build-helper-maven-plugin/workflows/GitHub%20CI/badge.svg?branch=master)](https://github.com/mojohaus/build-helper-maven-plugin/actions/workflows/maven.yml?query=branch%3Amaster)
66

77
This is the [build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) contains
88
serveral goals to support you in different kinds of task, like parsing version information,
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
invoker.goals = test
22
invoker.buildResult = success
3-
invoker.os.family = unix

src/it/reserve-ports-with-min-root-range/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<portName>port2</portName>
3636
<portName>port3</portName>
3737
</portNames>
38-
<minPortNumber>800</minPortNumber>
38+
<!-- defining only a max port number generates ports from 1024 onwards -->
39+
<maxPortNumber>10000</maxPortNumber>
3940
</configuration>
4041
</execution>
4142
</executions>

0 commit comments

Comments
 (0)