From 0523abae3096805cb605e3e97104c00f4d96e963 Mon Sep 17 00:00:00 2001 From: anthonygauthier Date: Fri, 28 Jul 2023 23:29:03 -0600 Subject: [PATCH] feat: using GH Actions instead of TravisCI feat: using GH Actions instead of TravisCI --- .github/workflows/conventionnal-commits.yaml | 16 ++++++++++++++++ .github/workflows/test.yaml | 20 ++++++++++++++++++++ .travis.yml | 3 --- 3 files changed, 36 insertions(+), 3 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..d7ab6d8 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,20 @@ +name: Continuous Testing +on: ['push'] + +jobs: + build: + strategy: + matrix: + java: [ '17' ] + os: [ 'ubuntu-latest' ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: Set up JDKs + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + + - 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 931cc77..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: java -jdk: -- oraclejdk13