mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-17 08:06:52 -04:00
78 lines
2.3 KiB
YAML
78 lines
2.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
pull_request_target:
|
|
types: [labeled]
|
|
|
|
env:
|
|
JAVA_DIST: 'zulu'
|
|
JAVA_VERSION: 23
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
test:
|
|
name: Compile and Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
cache: 'maven'
|
|
- name: Cache SonarCloud packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.sonar/cache
|
|
key: ${{ runner.os }}-sonar
|
|
restore-keys: ${{ runner.os }}-sonar
|
|
- name: Build and Test
|
|
run: >
|
|
xvfb-run
|
|
mvn -B verify -Djavafx.platform=linux
|
|
jacoco:report
|
|
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
|
-Pcoverage
|
|
-Dsonar.projectKey=cryptomator_cryptomator
|
|
-Dsonar.organization=cryptomator
|
|
-Dsonar.host.url=https://sonarcloud.io
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
- name: Draft a release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
draft: true
|
|
discussion_category_name: releases
|
|
token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
|
|
generate_release_notes: true
|
|
body: |-
|
|
:construction: Work in Progress
|
|
### What's New 🎉
|
|
|
|
### Bugfixes 🐛
|
|
|
|
### Other Changes 📎
|
|
|
|
---
|
|
|
|
TODO FULL CHANGELOG
|
|
|
|
📜 List of closed issues is available [here](TODO)
|
|
|
|
---
|
|
⏳ Please be patient, the builds are still [running](https://github.com/cryptomator/cryptomator/actions). New versions of Cryptomator can be found here in a few moments. ⏳
|
|
|
|
<!-- Don't forget to include the
|
|
💾 SHA-256 checksums of release artifacts:
|
|
```
|
|
```
|
|
-->
|
|
|
|
As usual, the GPG signatures can be checked using [our public key `5811 7AFA 1F85 B3EE C154 677D 615D 449F E6E6 A235`](https://gist.github.com/cryptobot/211111cf092037490275f39d408f461a).
|