• dallen@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    9 hours ago

    Actions are fine for very simple repos.

    Gitlab CI is a dream, definitely my preference at work.

    Jenkins can be okay or horrible depending on the setup.

    • Kissaki@programming.devOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 hours ago

      What makes GitLab CI better than GitHub Actions in your eyes?

      I’ve not extensively used either, and GitLab CI has been a while, but they felt pretty similar. I had put them into the same category.

      We use Jenkins at work. I administrate it. For the most part, I find it horrendous.

  • Drew@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    23 hours ago

    Just self host an open source runner like woodpecker and you’ll never have to move again

    hell you can even self host github actions via act

    • runeko@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      6 hours ago

      This. As someone who migrated an organization’s repos from a self hosted Git server to GitHub (begrudgingly) and then back to a self hosted Git server again when it didn’t meet the business needs … emphatically this.

  • lemmeBe@sh.itjust.works
    link
    fedilink
    arrow-up
    10
    arrow-down
    2
    ·
    1 day ago

    Do formatting and linting and such autofix issues automatically as part of pre-commit checks. That way they don’t end up as part of the CI.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      8 hours ago

      You need them in CI anyway to check people have actually done that, but yeah you definitely don’t need to have CI automatically fix formatting and commit the fixes. That’s crazy.

      • lemmeBe@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        arrow-down
        4
        ·
        edit-2
        8 hours ago

        No, you don’t.

        To check if people have done what - committed? That’s the only thing they need to do, and they’ll stumble upon a roadblock immediately if the typecheck or lint fails.

        Committing itself won’t be possible… That’s why we have automated pre-commit checks that don’t depend on people remembering to do them manually.

        • FizzyOrange@programming.dev
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          6 hours ago

          To check that people ran the pre-commit linters.

          Committing itself won’t be possible

          That’s not how pre-commit hooks work. They’re entirely optional and opt-in. You need CI to also run them to ensure people don’t forget.

            • FizzyOrange@programming.dev
              link
              fedilink
              arrow-up
              2
              ·
              4 hours ago

              No, they’re inherently optional in Git. There’s no way to “check in” a git hook. You have to put in your README

              Clone the repo and then please run pre-commit install! Oh and whatever you do don’t git commit --no-verify!

              You definitely need to actually check the lints in CI. It’s very easy though, just add pre-commit run -a to your CI script.

    • catalyst@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      Agreed. The idea of throwing code up at the CI and expecting it to fix my mistakes seems like a bad habit to me.

      • lemmeBe@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        ·
        23 hours ago

        Yep, I’d say so too. The moment I read the part about formatting in the CI, I thought to myself: I don’t think GitHub Actions are the problem at hand. 😄

    • Flipper@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      22 hours ago

      If it’s open source I’d still add it, because a lot of people can’t follow basic instructions.

      • lemmeBe@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        20 hours ago

        They don’t have to follow anything except try to commit their changes. Won’t be possible even locally if linting or typechecking fail.

    • normalexit@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      This is the way. I do my checks on pre push because my team has a PR driven workflow. I also have an alias to run-tests && git push origin HEAD since my tests are expensive (minutes to run thousands of tests), and I didn’t want that in a git hook.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    23 hours ago

    The only good thing about Github Actions is the “marketplace” or that you can publish and find actions. The rest is just… not the way I’d do CI. I’m so glad I don’t have to touch that anymore. Only thing worse than Github CI is Jenkins. *Shudder*

    Anti Commercial-AI license

    • Kissaki@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 hours ago

      You like the marketplace? I dislike it. Or at least its form. I appreciate that there is sharing of actions.

      But I dislike having to navigate between repo and marketplace pages. I dislike that I have to assess who publishes them and inspect whether they and the code are trustworthy, and I have to assess risk or whether to copy or extract the relevant code. (And then you have to add and configure via text and magic strings and look up params elsewhere which of course is a consequence of the tech, not a fault of the marketplace itself.)

      I feel it adds so much indirection and diffusion it’s hard to do good trustworthy actions/code well. Which if course stands against it’s usefulness of sharing workflows and actions. I know I’m more concerned and more thorough with that stuff than most people.

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        9 hours ago

        I like the concept. It helps with not having to rewrite the same stuff over and over again. It’s like a package registry. Whether it’s implemented well is debatable of course and it’s understandable you don’t like it.

        Anti Commercial-AI license