Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gleam versions in README.md #308

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,14 @@ jobs:
otp-version: '25'
os: 'ubuntu-20.04'
version-type: 'strict'
- gleam-version: '0.23'
otp-version: '24'
os: 'ubuntu-latest'
disable_problem_matchers: true
- gleam-version: '0.23.0-rc1'
otp-version: '24'
- gleam-version: '1.5.1'
otp-version: '27'
os: 'ubuntu-latest'
disable_problem_matchers: true
- gleam-version: '0.23.0-rc1'
- gleam-version: '1.5.1'
otp-version: false
os: 'ubuntu-latest'
disable_problem_matchers: true
- gleam-version: '0.22.0' # Version with Gleam's old archive naming convention
otp-version: '24'
os: 'ubuntu-latest'
disable_problem_matchers: true
- elixir-version: 'v1.13'
otp-version: '24'
escript_packages: 'hex protobuf'
Expand Down Expand Up @@ -168,12 +160,12 @@ jobs:
if: ${{matrix.combo.rebar3-version}}
- name: Format Gleam project (without installing Erlang/OTP)
run: |
cd test/projects/gleam_gleam
cd test/projects/gleamgleam
gleam format
if: ${{ matrix.combo.gleam-version && !matrix.combo.otp-version }}
- name: Run Gleam project tests (without `rebar3`)
run: |
cd test/projects/gleam_gleam
cd test/projects/gleamgleam
gleam test
if: ${{ matrix.combo.gleam-version && matrix.combo.otp-version && !matrix.combo.rebar3-version }}
- name: Run escript
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ jobs:
otp-version: '24'
rebar3-version: '3.15'
os: 'windows-latest'
- gleam-version: '0.19.0-rc3'
otp-version: '24'
os: 'windows-latest'
- gleam-version: '0.23.0-rc1'
otp-version: '24'
- gleam-version: '1.5.1'
otp-version: '27'
os: 'windows-latest'
- elixir-version: 'v1.13'
otp-version: '24'
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The action provides the following outputs:
|- |-
| `otp-version` | The Erlang version, e.g. `OTP-26.0`
| `elixir-version` | The Elixir version, e.g. `v1.14-otp-26`
| `gleam-version` | The Gleam version, e.g. `v0.23.0`
| `gleam-version` | The Gleam version, e.g. `v1.5.1`
| `rebar3-version` | The `rebar3` version, e.g. `3.18.0`
| `setup-beam-version` | The commit unique id of the executed action version, e.g. `a34c98f`

Expand Down Expand Up @@ -293,8 +293,8 @@ jobs:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '24'
gleam-version: '0.23.0-rc1'
otp-version: '27'
gleam-version: '1.5.1'
- run: gleam test
```

Expand All @@ -312,7 +312,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: false
gleam-version: '0.23.0-rc1'
gleam-version: '1.5.1'
- run: gleam check
```

Expand Down
19 changes: 0 additions & 19 deletions test/projects/gleam_gleam/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions test/projects/gleam_gleam/gleam.toml

This file was deleted.

11 changes: 0 additions & 11 deletions test/projects/gleam_gleam/manifest.toml

This file was deleted.

5 changes: 0 additions & 5 deletions test/projects/gleam_gleam/src/gleam_gleam.gleam

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "23.2"
gleam-version: "0.23.0-rc1"
- run: gleam format --check src test
otp-version: "26.0.2"
gleam-version: "1.5.0"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.beam
*.ez
build
/build
erl_crash.dump
24 changes: 24 additions & 0 deletions test/projects/gleamgleam/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# gleamgleam

[![Package Version](https://img.shields.io/hexpm/v/gleamgleam)](https://hex.pm/packages/gleamgleam)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gleamgleam/)

```sh
gleam add gleamgleam@1
```
```gleam
import gleamgleam

pub fn main() {
// TODO: An example of the project in use
}
```

Further documentation can be found at <https://hexdocs.pm/gleamgleam>.

## Development

```sh
gleam run # Run the project
gleam test # Run the tests
```
19 changes: 19 additions & 0 deletions test/projects/gleamgleam/gleam.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "gleamgleam"
version = "1.0.0"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
#
# description = ""
# licences = ["Apache-2.0"]
# repository = { type = "github", user = "", repo = "" }
# links = [{ title = "Website", href = "" }]
#
# For a full reference of all the available options, you can have a look at
# https://gleam.run/writing-gleam/gleam-toml/.

[dependencies]
gleam_stdlib = ">= 0.34.0 and < 2.0.0"

[dev-dependencies]
gleeunit = ">= 1.0.0 and < 2.0.0"
5 changes: 5 additions & 0 deletions test/projects/gleamgleam/src/gleamgleam.gleam
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import gleam/io

pub fn main() {
io.println("Hello from gleamgleam!")
}