continuity/.gitea/workflows/server.yaml
Timothy Schenk 72c2454fab
All checks were successful
Test if Server can be built / build-server (push) Successful in 1m17s
ci: install java
2023-10-28 15:29:59 +02:00

22 lines
739 B
YAML

name: Test if Server can be built
run-name: ${{ gitea.actor }} is building the Server application
on: [ push ]
jobs:
build-server:
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: https://github.com/actions/setup-dotnet@v3
with:
dotnet-version: 7.0
- run: |
export SONAR_TOKEN=${{secrets.SONAR_TOKEN}}
export SONAR_PROJECT_KEY=${{secrets.SONAR_PROJECT_KEY}}
export SONAR_HOST_URL=${{secrets.SONAR_HOST_URL}}
export IS_LOCAL_BUILD=${{secrets.IS_LOCAL_BUILD}}
export SUPPORTS_DOCKER=${{secrets.SUPPORTS_DOCKER}}
apt-get update
apt-get install --yes openjdk-11-jre
chmod +x ./build.sh
./build.sh --verbose --root .