NO-TICKET: Log2span - fix event name detection #2177
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR build | |
on: | |
pull_request: | |
concurrency: | |
group: pr-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
validate_pr_title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate PR title | |
shell: bash | |
run: | | |
PR_TITLE="${{ github.event.pull_request.title }}" | |
echo "Validating PR title: \"$PR_TITLE\"" | |
REGEX='^\[?(WIP|wip)?\]?\s*(DEMRUM-[0-9]+(,\s?DEMRUM-[0-9]+)*|NO-TICKET):\s.+$' | |
if [[ "$PR_TITLE" =~ $REGEX ]]; then | |
echo "✅ PR title is valid." | |
else | |
echo "❌ PR title is invalid." | |
echo "" | |
echo "It must match one of the following formats:" | |
echo "- DEMRUM-1234: Description" | |
echo "- DEMRUM-1234, DEMRUM-5678: Description" | |
echo "- NO-TICKET: Description" | |
exit 1 | |
fi | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 17 for running Gradle | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Build and test | |
run: touch ./local.properties; ./gradlew check javadoc assemble | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
check_codestyle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 17 for running Gradle | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Run ktlint | |
run: ./gradlew ktlintCheck | |
check_links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Link Checker | |
uses: lycheeverse/[email protected] | |
with: | |
fail: true | |
lycheeVersion: v0.16.1 |