Skip to content
/ maven-test-action Public template

Fast github action for running Maven test using docker.

License

Notifications You must be signed in to change notification settings

Jayllyz/maven-test-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-test-action

GitHub last commit (by committer) Maven CI

This action runs mvn test on a maven project. I've seen a lot of actions using "setup-java" and then running maven, but I wanted something faster so I used the maven docker image to run the tests.

Usage

---
name: Maven CI

on:
  push:
    branches:
      - main
  pull_request:

permissions:
  contents: read
   
jobs:
  build-and-test:
    runs-on: ubuntu-latest
    container: maven:3.9-eclipse-temurin-22-alpine

    steps:
      - uses: actions/checkout@v4

      - name: Run tests with Maven
        run: mvn -B test --file pom.xml -Dstyle.color=always
...

About

Fast github action for running Maven test using docker.

Topics

Resources

License

Stars

Watchers

Forks

Languages