Files
my-app/.gitea/workflows/full-latest.yaml
Patrick 89bdea0109
Some checks failed
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (push) Has been skipped
checks / Set up Java for Backend Tests and Build (push) Has been skipped
Gitea Actions Demo / Explore Gitea Actions - 2 (pull_request) Has been skipped
Gitea Actions Demo 2 / Builder (pull_request) Failing after 1m3s
checks / Set up Node and other necessary dependencies for Frontend Tests and Build (pull_request) Has been skipped
checks / Set up Java for Backend Tests and Build (pull_request) Has been skipped
setup java
2025-11-03 20:59:07 +01:00

51 lines
1.3 KiB
YAML

name: Gitea Actions Demo 2
run-name: ${{ gitea.actor }} is testing out Gitea Actions
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Builder:
runs-on: catthacker-ubuntu-latest
steps:
- name: Info
run: |
echo "Triggered by ${{ gitea.event_name }} event"
echo "Branch: ${{ gitea.ref }}"
echo "Repository: ${{ gitea.repository }}"
- name: Update apt-get
run: |
apt-get update -y
- name: Clone the repository
uses: actions/checkout@v4
#with:
#repository: ${{ gitea.repository }}
#token: ${{ secrets.ACCESS_TOKEN }}
#fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build with Maven
#uses: actions/checkout@v5
#uses: actions/setup-java@v5
#with:
#distribution: 'temurin'
#java-version: '21'
#cache: 'maven'
#cache-dependency-path: 'sub-project/pom.xml' # optional
run: |
java -version
mvn -version
mvn clean test -Dspring.profiles.active=test