This is a repository of reusable Github workflows
Currently the following workflows are provided:
The following actions are used currently
- actions/checkout
- actions/setup-java
- actions/cache
- gradle/actions/wrapper-validation
- EnricoMi/publish-unit-test-result-action
See EnricoMi/publish-unit-test-result-action/#permissions
Performs checkout, build and test of a Gradle based project.
jobs:
build-and-test:
uses: centic9/actions/.github/workflows/gradle-build.yml@3
A sample full workflow file is as follows
# This workflow will perform a build of the project and run tests
name: Build and check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows to run from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
uses: centic9/actions/.github/workflows/gradle-build.yml@5
It can also call installDist
via the following
uses: centic9/actions/.github/workflows/gradle-build.yml@5
with:
isApplication: true
If you require a full git-checkout, you can use
uses: centic9/actions/.github/workflows/gradle-build.yml@5
with:
fullCheckout: true
If additional Ubuntu/Debian packages are required, use the following
uses: centic9/actions/.github/workflows/gradle-build.yml@5
with:
addPackage: libfuse2
Performs checkout, build and test of a Maven based project.
jobs:
build-and-test:
uses: centic9/actions/.github/workflows/gradle-build.yml@3
A sample full workflow file is as follows
# This workflow will perform a build of the project and run tests
name: Build and check
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows to run from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
uses: centic9/actions/.github/workflows/maven-build.yml@5
If you require a full git-checkout, you can use
uses: centic9/actions/.github/workflows/maven-build.yml@5
with:
fullCheckout: true
If additional Ubuntu/Debian packages are required, use the following
uses: centic9/actions/.github/workflows/maven-build.yml@5
with:
addPackage: libfuse2
These scripts are licensed under the BSD 2-Clause License.