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 8s
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
44 lines
1.1 KiB
YAML
44 lines
1.1 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: 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 |