diff --git a/.github/test.yml b/.github/workflows/test.yml similarity index 79% rename from .github/test.yml rename to .github/workflows/test.yml index 4b211729..7f18d5a2 100644 --- a/.github/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,13 @@ name: Run tests on: workflow_dispatch: push: + branches: + - "main" + paths: + - "**.java" pull_request: paths: - - '**.java' + - "**.java" jobs: build: runs-on: ubuntu-latest @@ -23,4 +27,4 @@ jobs: run: mvn -B test - name: Run tests - run: mvn test \ No newline at end of file + run: mvn test