How to test GitHub Actions Locally!!!

Поділитися
Вставка
  • Опубліковано 10 вер 2024
  • Are you a developer today that loves to use GitHub Actions but you are constantly interrupted as you wait for them to run in the GitHub portal, taking you out of your flow? What if you could test and debug GitHub Actions locally? In this video, we go over act, an open source project that lets you run and test GitHub actions locally
    If you want to follow me on social media, here are some links
    🦆 / isaacrlevin
    🙀 github.com/isa...
    📺 / isaacrlevin
    👋 linktr.ee/isaa...
    Take a look at the GitHub repo for act to learn more and install it on your machine!
    github.com/nek...
    #github #cli #commandline #developer #productivity #developertools #github #github-actions

КОМЕНТАРІ • 13

  • @fnfal113
    @fnfal113 9 місяців тому +2

    Great vid, now I can test stuffs locally without making my commit history a mess.

  • @DavidVCastro
    @DavidVCastro 4 місяці тому

    Concise, and yet covered all the important stuff! Thanks for the boost on my project.

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

    Great stuff man, exactly what I was looking for. Thanks!

  • @rahulvashishth7635
    @rahulvashishth7635 7 місяців тому

    can we run the entire workflow instead of running job? i am working on workflows which need other jobs to run first and use the output from other job.

  • @abryanmanalansang9578
    @abryanmanalansang9578 7 місяців тому

    Have you tried sending Slack notifications using act?

  • @KarimFayed-oy5oo
    @KarimFayed-oy5oo 11 місяців тому +1

    What if I use a secret from GitHub and not an env variable how will I test it out using act ?

    • @isaacrlevin
      @isaacrlevin  11 місяців тому

      Not following. act does not actually connect to GitHub. If you have a secret you have to make it accessible to act via a file, env variable or passing it in

    • @KarimFayed-oy5oo
      @KarimFayed-oy5oo 11 місяців тому

      @@isaacrlevin So how can I make it accessible to act via a file ?

    • @fnfal113
      @fnfal113 9 місяців тому

      @@KarimFayed-oy5oo make an env file with the secret inserted, make act utilize the env file as shown from the video. Don't specify your token via command as it can leave a trace in your bash/shell history unless your PAT has minimal permissions and a very-very short lifetime.

    • @spkt1001
      @spkt1001 7 місяців тому

      @@KarimFayed-oy5oo 11 min of the video

    • @oedipamaas9007
      @oedipamaas9007 2 місяці тому

      @@KarimFayed-oy5oo You put the secret in a file and point it 'export ENV_VAR = path/to/filetoken.json'

  • @tyoungs714
    @tyoungs714 11 місяців тому +1

    how did you get the file Icons on GitHub?

    • @isaacrlevin
      @isaacrlevin  11 місяців тому +1

      I use this browser extension github.com/homerchen19/github-file-icons