Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayllyz/maven-test-action
Fast github action for running Maven test using docker.
https://github.com/jayllyz/maven-test-action
github-actions maven maven-template
Last synced: 11 days ago
JSON representation
Fast github action for running Maven test using docker.
- Host: GitHub
- URL: https://github.com/jayllyz/maven-test-action
- Owner: Jayllyz
- License: unlicense
- Created: 2023-12-22T08:41:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T12:48:00.000Z (about 2 months ago)
- Last Synced: 2024-12-20T01:15:01.875Z (12 days ago)
- Topics: github-actions, maven, maven-template
- Language: Java
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maven-test-action
![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/jayllyz/setupWSL)
[![Maven CI](https://github.com/Jayllyz/maven-test-action/actions/workflows/maven.yml/badge.svg)](https://github.com/Jayllyz/maven-test-action/actions/workflows/maven.yml)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
```yaml
---
name: Maven CIon:
push:
branches:
- main
pull_request:permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
container: maven:3.9-eclipse-temurin-22-alpinesteps:
- uses: actions/checkout@v4- name: Run tests with Maven
run: mvn -B test --file pom.xml -Dstyle.color=always
...
```