Skip to content

Commit

Permalink
Add Forgejo Action Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Jul 28, 2024
1 parent 1556501 commit ce8ad7a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .forgejo/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Copyright 2024 Martin Goellnitz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
name: Build Dinistiq

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: provocon

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 11
uses: https://github.com/actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'

- name: Setup Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew -PossindexUser=${{secrets.OSS_INDEX_USER}} -PossindexToken=${{secrets.OSS_INDEX_TOKEN}} jacocoTestReport coverallsJacoco audit build generatePomFileForMavenJavaPublication
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 comments on commit ce8ad7a

Please sign in to comment.