Skip to content

Commit

Permalink
chore: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
algomaster99 committed Aug 1, 2024
1 parent 55c8c60 commit 79f150d
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: code-quality

on:
pull_request:
push:
branches: [ main ]

jobs:
spotless:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '17'
- name: Run spotless check
run: mvn spotless:check
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: tests

on:
pull_request:
push:
branches: [ main ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java-version: [ 17, 21 ]
os: [ ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup JDK${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Build project
# We need to build the agent first, because the tests depend on it
run: mvn clean install -DskipTests
- name: Run tests
run: mvn test

0 comments on commit 79f150d

Please sign in to comment.