openrewrite / rewrite-github-actions

OpenRewrite recipes for performing GitHub action hygiene and migration tasks.
Apache License 2.0
9 stars 9 forks source link

Change Gradle commands to use the Gradle Wrapper #58

Open yeikel opened 1 year ago

yeikel commented 1 year ago

Example:

name: Java CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Build with gradle
        run: gradle test

Unix runners:

name: Java CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Build with gradle
        run: ./gradlew test

Windows Runners:

 name: Java CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Build with gradle
        run: gradlew test

Same as https://github.com/openrewrite/rewrite-github-actions/issues/57 but with the Gradle Wrapper

timtebeek commented 1 year ago

Hope you don't mind I unassigned you @yeikel I want to open this issue back up again to anyone to pick up. Feel free to open up a draft pull request if you'd like to contribute!