Compare commits
No commits in common. "2f252a4eae2147f109d38548b6ace29cfd8749a2" and "483be8f11c9aebe4b69ed76f66a610307c847e8e" have entirely different histories.
2f252a4eae
...
483be8f11c
4 changed files with 72 additions and 7 deletions
|
@ -13,14 +13,14 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: code.forgejo.org/actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: https://github.com/actions/setup-java@v4
|
||||
- uses: github.com/actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 21
|
||||
- uses: https://github.com/gradle/actions/setup-gradle@v4
|
||||
- uses: github.com/gradle/actions/setup-gradle@v4
|
||||
- name: Build gradle project
|
||||
run: ./gradlew build
|
||||
env:
|
||||
|
|
|
@ -13,15 +13,15 @@ jobs:
|
|||
check-formatting:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: code.forgejo.org/actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: https://github.com/actions/setup-java@v4
|
||||
- uses: github.com/actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 21
|
||||
- uses: https://github.com/gradle/actions/setup-gradle@v4
|
||||
- uses: https://code.forgejo.org/actions/setup-node@v4
|
||||
- uses: github.com/gradle/actions/setup-gradle@v4
|
||||
- uses: code.forgejo.org/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Run formatting check
|
||||
|
|
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 21
|
||||
- name: Update environment variables based on PR labels
|
||||
id: pr-env
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const labels = context.payload.pull_request.labels.map(label => label.name);
|
||||
console.log('PR labels:', labels);
|
||||
const springDebug = labels.includes('pr-debug');
|
||||
return { SPRING_DEBUG: '' + springDebug };
|
||||
result-encoding: json
|
||||
- uses: 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 }}
|
28
.github/workflows/formatting.yml
vendored
Normal file
28
.github/workflows/formatting.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Check formatting
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
check-formatting:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 21
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Run formatting check
|
||||
run: ./gradlew spotlessCheck
|
Loading…
Add table
Reference in a new issue