Skip to content

Commit

Permalink
Add CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauryCarrade committed Nov 21, 2020
1 parent c0b4692 commit caf4aa5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# action-ci
zDevelopers GitHub Action — Continuous Integration
# zDevelopers GitHub Action Templates

This repository mainly contain templates for GitHub workflows used to build, test, release, deploy, publish, and document, our libraries and plugins.
11 changes: 11 additions & 0 deletions workflow-templates/ci.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Continuous Integration",
"description": "For each push and pull request, build and test the project using Maven.",
"categories": [
"Java"
],
"filePatterns": [
"pom.xml$"
]
}

20 changes: 20 additions & 0 deletions workflow-templates/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build & Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit caf4aa5

Please sign in to comment.