Skip to content

Commit

Permalink
Fixed #307 - Change to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
khmarbaise committed Dec 29, 2022
1 parent c375f8d commit 4f483e5
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 96 deletions.
77 changes: 0 additions & 77 deletions .drone.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
name: PULL_REQUEST

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: "Checking out."
- uses: actions/setup-java@v3
with:
java-version: 19
distribution: 'temurin'

- name: Cache local Maven repositories
uses: actions/cache@v3
with:
path: |
~/.m2/repository
./**/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn verify -Prun-its -e -B -V --no-transfer-progress
40 changes: 40 additions & 0 deletions .github/workflows/push-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
name: PUSH_ISSUE

on:
push:
branches:
- 'issue-*'

jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
name: "Checking out."

- uses: actions/setup-java@v3
with:
java-version: 19
distribution: "temurin"
cache: maven

- name: "Building with Maven."
run: mvn verify -e -B -V --no-transfer-progress
43 changes: 26 additions & 17 deletions .github/workflows/deploy.yml → .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,42 @@
# specific language governing permissions and limitations
# under the License.
#
name: SitePublishing
name: PUSH

on:
push:
branches:
- master
- 'master'

jobs:
update-site:
name: Linux
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- uses: actions/cache@v2

- uses: actions/checkout@v3
name: "Checking out."

- uses: actions/setup-java@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-ubuntu-latest-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-ubuntu-latest
- name: 'Setup Java Version'
uses: actions/setup-java@v1
java-version: 19
distribution: "temurin"
cache: maven

- name: Cache local Maven repositories
uses: actions/cache@v3
with:
java-version: 18
- name: 'Build'
run: unset JAVA_TOOL_OPTIONS;mvn -V --no-transfer-progress clean verify site:site site:stage
- name: 'Deploy to gh-pages'
uses: JamesIves/github-pages-deploy-action@releases/v3
path: |
~/.m2/repository
./**/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Building with Maven."
run: mvn -V --no-transfer-progress verify site:site site:stage

- uses: JamesIves/github-pages-deploy-action@releases/v4
name: "Deploy to gh-pages"
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Integration Testing Framework Extension

[![Apache License, Version 2.0, January 2004](https://img.shields.io/github/license/apache/maven.svg?label=License)][license]
[![Build Status](https://cloud.drone.io/api/badges/khmarbaise/maven-it-extension/status.svg)](https://cloud.drone.io/khmarbaise/maven-it-extension)
[![Build](https://github.com/khmarbaise/maven-it-extension/actions/workflows/push.yml/badge.svg)](https://github.com/khmarbaise/maven-it-extension/actions/workflows/push.yml)
[![Site](https://github.com/khmarbaise/maven-it-extension/workflows/SitePublishing/badge.svg)][published-site]
[![Issues](https://img.shields.io/github/issues/khmarbaise/maven-it-extension)](https://github.com/khmarbaise/maven-it-extension/issues)
[![Issues Closed](https://img.shields.io/github/issues-closed/khmarbaise/maven-it-extension)](https://github.com/khmarbaise/maven-it-extension/issues?q=is%3Aissue+is%3Aclosed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
:issue-302: https://github.com/khmarbaise/maven-it-extension/issues/302[Fixed #302]
:issue-303: https://github.com/khmarbaise/maven-it-extension/issues/303[Fixed #303]
:issue-304: https://github.com/khmarbaise/maven-it-extension/issues/304[Fixed #304]
:issue-307: https://github.com/khmarbaise/maven-it-extension/issues/307[Fixed #307]
:pr-211: https://github.com/khmarbaise/maven-it-extension/pull/211[Pull request #211]
:issue-??: https://github.com/khmarbaise/maven-it-extension/issues/??[Fixed #??]

Expand Down Expand Up @@ -199,5 +200,6 @@
* {issue-295} - Upgrade to eclipse-temurin-19-alpine
* {issue-296} - Fixing vulnerable dependencies used in IT's examples
* {issue-303} - Use mockito-bom instead property
* {issue-307} - Change to GitHub Actions.

The full release notes can be found here {release_0_12_0}[Release 0.12.0].
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
<exclude>dependency-reduced-pom.xml</exclude><!-- Maven shade plugin -->
<exclude>.asf.yaml</exclude><!-- GitHub Support -->
<exclude>.java-version</exclude>
<exclude>.drone.yml</exclude>
<exclude>src/test/resources/**</exclude>
</excludes>
</configuration>
Expand Down

0 comments on commit 4f483e5

Please sign in to comment.