Skip to content

Commit

Permalink
chore(deps): bump Gleam major stable and deps. (#3)
Browse files Browse the repository at this point in the history
## Description

* Update gleam to v1.0.0.
* Update dependencies.
  • Loading branch information
defgenx authored Apr 12, 2024
1 parent a474dad commit 0adc6a0
Show file tree
Hide file tree
Showing 14 changed files with 183 additions and 93 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.0
- uses: erlef/setup-beam@v1.13.0
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "25.1"
gleam-version: "0.24.0"
# elixir-version: "1.14.1"
- run: gleam format --check src test
otp-version: "26.0.2"
gleam-version: "1.0.0"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
23 changes: 23 additions & 0 deletions foo/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test

on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.0.0"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
4 changes: 4 additions & 0 deletions foo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.beam
*.ez
/build
erl_crash.dump
25 changes: 25 additions & 0 deletions foo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# foo

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

```sh
gleam add foo
```
```gleam
import foo
pub fn main() {
// TODO: An example of the project in use
}
```

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

## Development

```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```
19 changes: 19 additions & 0 deletions foo/gleam.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "foo"
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 = "username", repo = "project" }
# links = [{ title = "Website", href = "https://gleam.run" }]
#
# 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 or ~> 1.0"

[dev-dependencies]
gleeunit = "~> 1.0"
5 changes: 5 additions & 0 deletions foo/src/foo.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 foo!")
}
12 changes: 12 additions & 0 deletions foo/test/foo_test.gleam
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import gleeunit
import gleeunit/should

pub fn main() {
gleeunit.main()
}

// gleeunit test functions end in `_test`
pub fn hello_world_test() {
1
|> should.equal(1)
}
8 changes: 5 additions & 3 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ licences = ["Apache-2.0"]
description = "A Gleam implementation of Erlang logger"
repository = { type = "github", user = "defgenx", repo = "glog" }

gleam_version = ">= 1.0.0"

[dependencies]
gleam_stdlib = "~> 0.24"
gleam_erlang = "~> 0.17"
gleam_stdlib = "~> 0.36"
gleam_erlang = "~> 0.25"

[dev-dependencies]
gleeunit = "~> 0.6"
gleeunit = "~> 1.0"
12 changes: 6 additions & 6 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_erlang", version = "0.17.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "A3BB3D4A6AFC2E34CAB1A4960F0CBBC4AA1A052D5023477D16B848D86E69948A" },
{ name = "gleam_stdlib", version = "0.25.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "AD0F89928E0B919C8F8EDF640484633B28DBF88630A9E6AE504617A3E3E5B9A2" },
{ name = "gleeunit", version = "0.7.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "5F4FBED3E93CDEDB0570D30E9DECB7058C2D327996B78BB2D245C739C7136010" },
{ name = "gleam_erlang", version = "0.25.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "054D571A7092D2A9727B3E5D183B7507DAB0DA41556EC9133606F09C15497373" },
{ name = "gleam_stdlib", version = "0.36.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "C0D14D807FEC6F8A08A7C9EF8DFDE6AE5C10E40E21325B2B29365965D82EB3D4" },
{ name = "gleeunit", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "72CDC3D3F719478F26C4E2C5FED3E657AC81EC14A47D2D2DEBB8693CA3220C3B" },
]

[requirements]
gleam_erlang = "~> 0.17"
gleam_stdlib = "~> 0.24"
gleeunit = "~> 0.6"
gleam_erlang = { version = "~> 0.25" }
gleam_stdlib = { version = "~> 0.36" }
gleeunit = { version = "~> 1.0" }
Loading

0 comments on commit 0adc6a0

Please sign in to comment.