Gleam: Generate GitHub actions CI configuration for new projects

Created on 28 Oct 2019  路  10Comments  路  Source: gleam-lang/gleam

help wanted

All 10 comments

Do you have some more info about this? I am not sure I understand the usage scenario.

I want to make gleam new $PROJECT generate a .github/workflow/whatever file so that Gleam projects are ready for CI by default, to make reduce friction getting set up with Gleam.

An idea picked up from Crystal language

Oh, cool. Makes sense. I'll take look at it later.
A bit offtopic: could you please create new issue label to distinguish the GitHub Actions related ones, so I can better filter them?

It's not going to be a long-running piece of work so I don't want to create a label I'm afraid, they can't be archived.

OK, never mind then. :-)

I think we should create a setup-gleam action similar to this one https://github.com/actions/setup-elixir
Then the workflow would be as simple as:

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions/[email protected]
        with:
          otp-version: 22.x
          gleam-version: 0.5.x
      - run: gleam build
# and maybe later - run: gleam test

Am I right?

Sounds good to me!

Please assign to me. 馃檹

It might be a good solution to create something like setup-gleam repo here in gleam-lang organization and add me there as a collaborator. This way, the action will be under the right organization and we will not have to transfer or fork the repo later. What do you think @lpil?

Great idea! I have created the repo and added you as a collaberator.

https://github.com/gleam-lang/setup-gleam

I think we can use the setup-elixir repository as a base, swapping the Elixir specific code out for Gleam.

Was this page helpful?
0 / 5 - 0 ratings