From 9fb0de8f2167ea2cfbc5d443ed8072cdd043922e Mon Sep 17 00:00:00 2001 From: Anthony Gauthier Date: Sun, 10 Mar 2024 21:01:28 -0400 Subject: [PATCH] chore: removed TravisCI in favor of GH Actions --- .github/workflows/conventionnal-commits.yaml | 16 +++++++++++++++ .github/workflows/test.yaml | 21 ++++++++++++++++++++ .travis.yml | 8 -------- 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/conventionnal-commits.yaml create mode 100644 .github/workflows/test.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/conventionnal-commits.yaml b/.github/workflows/conventionnal-commits.yaml new file mode 100644 index 0000000..21445dd --- /dev/null +++ b/.github/workflows/conventionnal-commits.yaml @@ -0,0 +1,16 @@ +name: Conventional Commits + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: liatrio/github-actions/conventional-pr-title@master + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..fe6c98c --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Continuous Testing +on: ['push'] + +jobs: + build: + strategy: + matrix: + java: [ '17', '21' ] + os: [ 'ubuntu-latest' ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: Set up JDKs + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: "temurin" + + - name: Build project with Maven + run: mvn test --file pom.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f8a6563..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: java -jdk: - - openjdk10 - -sudo: true -cache: - directories: - - $HOME/.m2 \ No newline at end of file