diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 9a37afea..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Java Maven CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# -version: 2 -jobs: - build: - docker: - # specify the version you desire here - - image: circleci/openjdk:8-jdk - - working_directory: ~/repo - - environment: - # Customize the JVM maximum heap limit - MAVEN_OPTS: -Xmx3200m - - steps: - - checkout - - - run: mvn clean verify diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..c61b5e58 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +# 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: CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn clean verify --file pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..1a50ef8a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Create Release + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Deploy to Github Package Registry + env: + GITHUB_USERNAME: x-access-token + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: + mvn --settings settings.xml deploy + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false \ No newline at end of file diff --git a/.travis.settings.xml b/.travis.settings.xml deleted file mode 100644 index f970a42e..00000000 --- a/.travis.settings.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - bintray-baloise-mvn - baopso - ${env.DEPLOY_API_KEY} - - - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f5c99a7f..00000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: java \ No newline at end of file diff --git a/README.md b/README.md index da2b3340..5177eb4a 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ [![gitpod-IDE](https://img.shields.io/badge/open--IDE-as--gitpod-blue.svg?style=flat&label=openIDE)](https://gitpod.io#https://github.com/baloise/test-automation-framework) -## travis [![Travis Status](https://travis-ci.org/baloise/test-automation-framework.svg?branch=master)](https://travis-ci.org/baloise/test-automation-framework) - -## circle ci [![CircleCI Status](https://circleci.com/gh/baloise/test-automation-framework.svg?style=svg)](https://circleci.com/gh/baloise/test-automation-framework) +![CI](https://github.com/baloise/test-automation-framework/workflows/CI/badge.svg) # TAF is a test automation framework based on JUnit and Selenium ``` diff --git a/settings.xml b/settings.xml new file mode 100644 index 00000000..e28196e7 --- /dev/null +++ b/settings.xml @@ -0,0 +1,41 @@ + + + + + + github + + + + + github + + + central + https://repo1.maven.org/maven2 + + true + + + true + + + + github + GitHub Baloise Apache Maven Packages + https://maven.pkg.github.com/baloise + + + + + + + + github + ${env.GITHUB_USERNAME} + ${env.GITHUB_TOKEN} + + + \ No newline at end of file