TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Automating a Software Company with GitHub Actions

247 pointsby mariusandraalmost 4 years ago

13 comments

dupedalmost 4 years ago
I just want to be able to write all my workflow code as typescript (including the config - no YAML, for the love of god, no more YAML!) and run it locally with a debugger attached.<p>It&#x27;s cost me hundreds to thousands of dollars to implement nontrivial workflows because of how the YAML is parsed (for example, empty strings when using a secret that has been renamed or removed) and the lack of introspection or debuggability when something goes wrong.<p>It&#x27;s gotten to the point where new any new workflows I write are thin wrappers around a single script and I don&#x27;t import any actions besides actions&#x2F;checkout (even that has been bug prone, historically).<p>All that said, it&#x27;s not like other platforms are better. But they certainly are cheaper and don&#x27;t have dumb breakages when you need cross platform builds (has upload-artifact been fixed for executables on MacOS yet?)
评论 #28237351 未加载
评论 #28235917 未加载
评论 #28235603 未加载
评论 #28236496 未加载
评论 #28242227 未加载
评论 #28238370 未加载
评论 #28236031 未加载
评论 #28236148 未加载
评论 #28237192 未加载
评论 #28244221 未加载
评论 #28236118 未加载
评论 #28237949 未加载
评论 #28236866 未加载
评论 #28243475 未加载
danpalmeralmost 4 years ago
One of the things I like about Actions is how much it&#x27;s focused on automation rather than CI. The pain points I&#x27;ve had with Circle&#x2F;GitLab&#x2F;Travis have often boiled down to the fact that they are often very specifically about _testing software_, not _automating processes_, and not even _deploying software_.<p>On that last one, there&#x27;s a potential bug in the deployment pipeline here – deploys could run simultaneously or some bad luck on runner speed could even see an older version of the code go out after a newer version. Combined with the automated database migrations this could be quite a big problem!<p>Actions thankfully solved this recently with the `concurrency` key that lets you form a serial queue by a given key such as the branch name.
评论 #28235351 未加载
评论 #28236317 未加载
评论 #28234883 未加载
BugsJustFindMealmost 4 years ago
I love GH actions, but they&#x27;re still a bit too sharp-edged for my taste.<p>Like...the last time I checked, workflows had no runtime macro for limiting execution to the default branch except explicitly by a specific name, and the closest you could get to generically checking &quot;whatever the default branch is called right now&quot; was either a template workflow that would set some static text for the name at creation that breaks if the default branch name is subsequently changed or a song and dance querying the API and setting an environment variable inside one of the workflow steps and then gating all subsequent steps on the result. This was a long time after they introduced editable default branch names and seems like such an obvious oversight.<p>Then there are weird quirks like the subshell file system permissions block that requires using sudo if you want to move files around within your repo clone from inside an invoked shell script.
评论 #28235357 未加载
crooked-valmost 4 years ago
At my company, the biggest pain points we&#x27;ve run into with GitHub Actions are all centered around the many lacking aspects of permission handling.<p>- You can&#x27;t pull in private dependencies published from other repos (for example, packages published on repo A used as a dependency on repo B) without using a private access token.<p>- You can&#x27;t use git pulls from other repos (for example, repo B using `orgname&#x2F;repoA#123456` as a dependency in package.json) without using a private access token, and it&#x27;s a pain in the ass to make it work across workflow steps.<p>- You can&#x27;t allow Dependabot to run as a trusted user, which makes it impossible to actually use any of the workarounds for the above issues with it.<p>- You can&#x27;t create PRs to publish changes across repos (such as automatically keeping some set of files in sync) without using a private access token.<p>There are other complications, but those are the biggest ones.
评论 #28240036 未加载
reidjsalmost 4 years ago
GitHub Actions are such a great tool, I use them to schedule tweets for me.
评论 #28234932 未加载
评论 #28238670 未加载
bklyn11201almost 4 years ago
Can anyone point me to an example of a Github action resulting in standing up a fully working backend with a resolvable DNS entry for manual pull request testing?
评论 #28240554 未加载
valenterryover 3 years ago
As long as automation solutions (such as all ci-tooling) uses yaml to define logic instead of a proper programming language (or at least configuration language like dhall), I will try to stay away from them as much as possible.
cube00over 3 years ago
I&#x27;m always hesitant to lock into solutions like these because they may not always be offered on the same terms.<p>For example, recently when they had to reduce access to GitHub Actions because miners were abusing it.<p>Where as my local configuration management (Ansible, Puppet etc.) script can always run anywhere and I can even run on my own build VM if I need too.
c17ralmost 4 years ago
I did a triple-take &quot;...at PostHog we&#x27;ve been avid users of GitHub since its early ARPANET days.&quot;
评论 #28236569 未加载
jbergstroemalmost 4 years ago
I noticed their hadolint action and couldn&#x27;t help but think it falls a bit short in terms of flexibility and output. I wrote an action to improve these type of use cases that can be found here: <a href="https:&#x2F;&#x2F;github.com&#x2F;jbergstroem&#x2F;hadolint-gh-action" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jbergstroem&#x2F;hadolint-gh-action</a>
atonsealmost 4 years ago
GitHub actions is really making me want to move our company back there from GitLab.<p>Does GitLab have a response planned?
AliBoukerouiover 3 years ago
That&#x27;s cool :)
ryanmarshalmost 4 years ago
LOL a software company is more, so much more, than CI. I thought I was going to read something novel about using GitHub actions for tracking sales leads or customer success or something.
评论 #28234928 未加载
评论 #28234700 未加载