Giter VIP home page Giter VIP logo

Comments (6)

spencer741 avatar spencer741 commented on June 15, 2024

Making some good progress. Obviously git remote will only work post-clone, so I am looking at
git ls-remote to detect branch name, because we need to do it pre-clone.

from copycat-action.

spencer741 avatar spencer741 commented on June 15, 2024

@andstor I think I have something testable working for this... there is likely a few kinks to work out.

How do you test Github actions locally for this repo? Or do you just docker build and run and pass the env variables manually? Or do you use something like act?

Any info to help in the local testing process would be great :)

from copycat-action.

andstor avatar andstor commented on June 15, 2024

Automatic detection of the default branch is absolutely something we should try to implement 👍

@spencer741 I took a quick look at the git ls-remotecommand you mentioned. I did a quick google search and came up with something like this:

git ls-remote --symref https://github.com/andstor/copycat-action HEAD | awk '/^ref:/ {sub(/refs\/heads\//, "", $2); print $2}'

It seems to do the trick, but has to be more thoroughly tested, both in terms of reliability and validity.

Regarding testing, I have just sat up two private testing repositories and used GitHub Actions directly. This is absolutely not ideal. For this purpose, act seems to be a much better approach. However, I haven't had time to try it out. Please do share your experience if you decide to try it out! 🤩

Manually testing the action's logic (entrypoint.sh) is however, a somewhat painful task when testing for backwards compatibility. I would therefore really like to get some automatic regression testing implemented. If this is something you would be interested in, I would really appreciate it 😍

from copycat-action.

danielbayley avatar danielbayley commented on June 15, 2024

Any progress on this? Surely main should now be the default in the meantime…

from copycat-action.

spencer741 avatar spencer741 commented on June 15, 2024

Thanks for bringing this up @danielbayley. I think the owner and I have become extremely busy with life. I'll make a note to myself to dive into this later this week.

from copycat-action.

danielbayley avatar danielbayley commented on June 15, 2024

I think the owner and I have become extremely busy with life.

Tell me about it! 😅

from copycat-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.