GitHub Actions for Gradle projects

Поділитися
Вставка
  • Опубліковано 10 лип 2024
  • Did you ever wonder what this GitHub Actions thing is? I recently discovered that it's a hosted CI solution that's easy to setup and is integrated with version control management. Oh, and it's free too!
    Join me on this deep dive into GitHub actions, exploring step-by-step how to setup continuous integration for a real-life Gradle project.
    Is this the end of having to manage CI infrastructure?
    ▶️ Introduction 0:00
    ▶️ GitHub Actions overview 1:08
    ▶️ Setup GitHub Actions in a Gradle project 2:49
    ▶️ Navigating the GitHub Actions UI 5:17
    ▶️ Enable Gradle caching 6:37
    ▶️ An alternative approach 8:13
    ▶️ Build on pull request creation 9:10
    ▶️ What else can GitHub Actions do? 13:08
    ▶️ 3 disadvantages of using GitHub Actions 14:16
    🚀 FREE QUICK-START GRADLE GUIDE tomgregory.com/gradlequickstart
    🔥 ULTIMATE GRADLE BUILD BIBLE tomgregory.com/gradlebuildbible
    VIDEO RESOURCES
    👨‍💻 GitHub repo github.com/tkgregory/gradle-g...
    📖 This video in article format tomgregory.com/gradle/build-g...
  • Наука та технологія

КОМЕНТАРІ • 18

  • @TomGregoryTech
    @TomGregoryTech  2 роки тому +1

    ►► Getting started with Gradle just got much easier. Check out my FREE Get Going with Gradle course → bit.ly/30YrmzI

  • @lz-ym5eq
    @lz-ym5eq 2 роки тому +1

    I am very new with gradle and github actions. This video helped me a lot with my pet project. Thank you so much.

  • @teixeirah1643
    @teixeirah1643 2 роки тому +1

    Awesome as always, Tom! I specially liked the part about the "CI passing" icon, I didn't know about that. It looks professional to have that on the readme. Really awesome!

  • @mariocalderon2148
    @mariocalderon2148 Рік тому +1

    Always learning something! Thanks a lot!

  • @merwandz
    @merwandz 2 роки тому +1

    we are using in it in our company and thanks to your video i am customizing the script a little bit , thanks

  • @SuperZekesYT
    @SuperZekesYT 3 місяці тому

    3:37
    me:
    build time! 😄

  • @jovanthournout9707
    @jovanthournout9707 2 роки тому

    Another great video and blog post. Tnx Tom. Any suggestions on how to reduce the duplicated java version in the workflow file and in your toolchain? Perhaps it is a minor issue but you will have to upgrade the number 17 in both places

    • @TomGregoryTech
      @TomGregoryTech  2 роки тому

      Hi Jo. Good point. You can define environment variables at the workflow, job, or step level docs.github.com/en/actions/learn-github-actions/environment-variables#about-environment-variables

  • @BBDoesTheThing
    @BBDoesTheThing Рік тому +1

    at 7:33 line 13: cache:gradle is spitting errors at me on github actions, does it still work?

    • @TomGregoryTech
      @TomGregoryTech  Рік тому

      Yes, I'm using it. See this repo for an example github.com/tkgregory/gradle-hero/blob/master/.github/workflows/gradle.yml

  • @kinsleykajiva
    @kinsleykajiva 2 роки тому

    Hi man , thanks for the vide but i am stuck at this point in my ci on github : ./gradlew: line 1: version: command not found
    ./gradlew: line 2: oid: command not found
    size: '8070': No such file

    • @TomGregoryTech
      @TomGregoryTech  2 роки тому

      Hi Kinsley. Could be a permissions issue? Did you try this? git update-index --chmod=+x gradlew

  • @franfilippi6962
    @franfilippi6962 Рік тому

    Hi, in which folder save the jar file?

  • @NurPaul
    @NurPaul Рік тому

    How can i get the auto completion while writing the yml files?

    • @TomGregoryTech
      @TomGregoryTech  Рік тому

      Hi. In IntellIJ IDEA, open the workflow file and click "No JSON Schema" in the Status Bar (bottom right). Then select GitHub Workflow. Then you'll have autocomplete available.

    • @NurPaul
      @NurPaul Рік тому +1

      @@TomGregoryTech
      Hi
      thanks, it worked.

  • @mkjvd
    @mkjvd Рік тому

    Excllnt