Live data from Hacker News

GitHub Actions is my new favorite free programming tool [video]

bytesized.xyz

121–130 of 134 posts

Re: GitHub Actions is my new favorite free programming tool [video]

#121
post #114
post #72

Earlier quoted context omitted.

Sorry you've been fighting this. We're actively working on the documentation as well as improving the setup workflows for Actions which should alleviate lots of this pain. Those one line snippets are likely going to be taken down, most systems are too complicated for those to work. It looks nice for a couple package systems but that Maven one is obviously flawed. I'd be happy to help you dig through whatever you're t…

I am fighting with packages, too. My desire to move a package to another repo still is unanswered. No help via forum or my support requests. https://github.community/t5/How-to-use-Git-and-GitHub/Move-N...

They cannot move packages. They were able to delete packages in one repository and we were able to push to a new repository. The support responded every day US time.

Re: GitHub Actions is my new favorite free programming tool [video]

#122
post #8

Earlier quoted context omitted.

Thanks for the warning, are there any good tools that integrate with pull request checks that can be self hosted? We self host nearly everything at work except for github. (And it's VERY difficult for me to get anything that costs money approved regardless of price)

> Thanks for the warning, are there any good tools that integrate with pull request checks that can be self hosted? Recently at work we've done an analysis of a of CI/CD tools. Many of them are self-hosted, free (and open source) and support a variety of workflows - including pull request related checks (either by polling of via webhooks). A cursory search will yield you a lot to play with, so... go ahead and do that…

It seems like their gitlab.com uptime isn't that relevant when the question was about self-hosted CI. And while I don't like the idea of telemetry in self-hosted products either, calling it "corporate espionage" is hyperbole and I don't know how much more one could expect from their response other than apologizing and backtracking.

Re: GitHub Actions is my new favorite free programming tool [video]

#123
post #13

I have spent the last two days fighting with these new Github tools. I've been trying to do a simple Hello-World Maven app, built on Github Actions and deployed to Github Packages. It does not work. Github documentation is a disaster. They leave out critical parts. They don't provide examples. Everything they write is terse, confusing, and incomplete. They have short little articles on how to do things, and for each…

Sounds a bit harsh. I managed to get a simple gradle build going a few weeks ago with very little work. I say, simple, but it actually uses docker compose to spin up Elasticsearch to run some integration tests (using the gradle docker compose plugin). This was shockingly easy and required no extra work since their ubuntu context already has that pre-installed. So, use ubuntu, checkout code, add Java, configure some c…

My build worked ok. It was the integration with Github Packages that failed.

Re: GitHub Actions is my new favorite free programming tool [video]

#124
post #8

Earlier quoted context omitted.

Thanks for the warning, are there any good tools that integrate with pull request checks that can be self hosted? We self host nearly everything at work except for github. (And it's VERY difficult for me to get anything that costs money approved regardless of price)

Product Manager for GitHub Actions here. You can self-host the GitHub Actions runners. This means that you can run CI/CD workflows on your own hardware, while your source code is hosted on github.com itself. https://help.github.com/en/actions/automating-your-workflow-...

We're currently trying to use Github Actions but we've run into a few issues. The first is that when our team members push pull requests from their forked branches it doesn't trigger checks on the pull request. I understand this is for security reasons, but in our case the repository is private and all forks are considered trusted.

The other is that there's currently no way to label specific workers. Because of how our network/firewall is segmented we would like to be able to specify a worker for Staging/Dev/Production separately. The closest thing I found was this [0] pull request from October, but it doesn't add the ability to add custom labels.

Is there any timeline for either of these features (especially the labels)?

[0] https://github.com/actions/runner/pull/130

Re: GitHub Actions is my new favorite free programming tool [video]

#125
post #59
post #36

Earlier quoted context omitted.

I assume you’re talking about Go here?

Possibly Typescript. Try finding documentation for the bundled "Record" type. It seems you're supposed to just know how to use it already.

I have yet to find a straight answer on how `declare` actually works in the Typescript docs. I had to go to Stack Overflow to learn what it's for.

The TS docs basically just say "use declare to declare [thing]" over and over, and it's only mentioned in the handbook on a page that doesn't seem to be listed in the handbook menu anywhere.[0] You have to search for it and wing it, because the search result for this just says "By Example." Notice that there is no article highlighted in the handbook menu on the left like there would be on any of the pages listed there.

[0]: https://www.typescriptlang.org/docs/handbook/declaration-fil...

Re: GitHub Actions is my new favorite free programming tool [video]

#127
post #117

Earlier quoted context omitted.

If you want to run within a container so that you don't have to install dependencies, that's no problem. Just specify it as `jobs. .container`. GitHub Actions will download and start that container, and any `run` commands that you specify within that job will run within that container. Without that, they'll run directly on the virtual machine that you specify.

> Just specify it as `jobs. .container`. I don't know what this means. Are there any examples? Running in a container is the one big thing I'm missing and couldn't find any documentation about.

Here's an example: https://www.edwardthomson.com/blog/github_actions_5_building...

Re: GitHub Actions is my new favorite free programming tool [video]

#128

Earlier quoted context omitted.

Indeed, GitHub Actions only has ubuntu virtual machines, but you can run a custom container with the `jobs. .container` specifier.

Actually it' s possible to do react native builds on OS X as well: https://medium.com/@jonnyburger/first-look-using-github-acti... We've been experimenting with this and are using this to add some CI to our react native frontend.

Yes, I apologize for not being clear: our Linux virtual machines only run Ubuntu. (We also offer macOS and Windows virtual machines.)

Re: GitHub Actions is my new favorite free programming tool [video]

#130
post #112

Earlier quoted context omitted.

Someone please tell the Google Cloud Platform teams this. So many hello world examples which reek of, "I was told to write documentation but I really hate writing documentation". I mean this in good faith, I think writing documentation for a product you don't actually use is a miserable experience and I hope they can find a better balance... Writing documentation also seems to be a task you kick out to your junior de…

It's not their documentation that is bad, it's the architecture. Too many layers, and things glued together. Where you need to make additional abstractions just to make sense of it all, ending up with a million LOC just to copy something from A to B. For example integrating support for Google Drive took months, where I ended up using a third party solution, and users are met with a big red warning about my app now be…

It's a moat.
Post reply on HN