Forgejo actions. Pipeline for building the project
Some checks are pending
Build and Cache Maven Project / build (push) Waiting to run
Some checks are pending
Build and Cache Maven Project / build (push) Waiting to run
This commit is contained in:
parent
51208eeffd
commit
12c5fc6b21
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/ci.yml
Normal file
27
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
# .forgejo/workflows/ci.yml
|
||||
name: Build and Cache Maven Project
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, develop]
|
||||
pull_request:
|
||||
workflow_dispatch: # manual trigger
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
||||
- name: Build backend + frontend
|
||||
run: |
|
||||
echo "Building backend + frontend"
|
||||
mvn clean install -Pprod -DskipTests
|
Loading…
Add table
Add a link
Reference in a new issue