Skip to content

Commit

Permalink
feat(ci): refactor and separate push to master / PR workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed Sep 22, 2024
1 parent df49a8a commit ab554bf
Show file tree
Hide file tree
Showing 7 changed files with 326 additions and 373 deletions.
26 changes: 26 additions & 0 deletions .github/actions/gradle-task/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 'gradle-task'
description: 'Runs a gradle task'
inputs:
gradle-cache-encryption-key:
description: 'Gradle cache encryption key'
required: true
task:
description: 'Gradle task to run'
required: true
runs:
using: 'composite'
steps:
- name: "Java setup"
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4
with:
distribution: "temurin"
java-version: "17"
- name: Gradle setup
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }}
- name: Ktfmt
shell: bash
run: ./project/gradlew -p project ${{ inputs.task }} --scan
361 changes: 0 additions & 361 deletions .github/workflows/build-and-test.yaml

This file was deleted.

Loading

0 comments on commit ab554bf

Please sign in to comment.