From 2f252a4eae2147f109d38548b6ace29cfd8749a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Sun, 20 Apr 2025 22:06:17 +0200 Subject: [PATCH] ci: Remove outdated GitHub workflows --- .github/workflows/build.yml | 37 -------------------------------- .github/workflows/formatting.yml | 28 ------------------------ 2 files changed, 65 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index f7f5bc1..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,37 +0,0 @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml deleted file mode 100644 index 005e302..0000000 --- a/.github/workflows/formatting.yml +++ /dev/null @@ -1,28 +0,0 @@ -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 \ No newline at end of file