home-cert-assistant/.forgejo/workflows/build.yml
Magnus Leßmann (@MarkL4YG) dbf50fa9d3
Some checks failed
Check formatting / check-formatting (pull_request) Failing after 0s
Build / build (pull_request) Failing after 10s
ci: Configure proxies directly in Git
2025-04-20 22:12:58 +02:00

35 lines
No EOL
953 B
YAML

name: Build
on:
pull_request:
branches:
- main
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
env:
HTTP_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
HTTPS_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Configure proxies
run: |
git config --global http.proxy "$HTTP_PROXY"
git config --global https.proxy "$HTTPS_PROXY"
- uses: https://code.forgejo.org/actions/checkout@v4
with:
fetch-depth: 0
- uses: https://github.com/actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- uses: https://github.com/gradle/actions/setup-gradle@v4
- name: Build gradle project
run: ./gradlew build
env:
ORG_GRADLE_PROJECT_SPRING_DEBUG: ${{ fromJSON(steps.pr-env.outputs.result).SPRING_DEBUG }}