Skip to content

Commit

Permalink
ci: name steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bondiano committed Jun 21, 2024
1 parent 34d7994 commit afa0f42
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "27.0"
gleam-version: "1.2.1"
rebar3-version: "3"
rebar3-version: "3.23.0"
- name: Install Dependencies
run: gleam deps download
- name: Test
run: gleam test
- name: Check Format
run: gleam format --check src test
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
3 changes: 2 additions & 1 deletion src/telega/bot.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ fn do_handle(
True -> Some(handle(new_context(bot, update), update_command))
False -> None
}
HandleCommands(commands, handle), CommandUpdate(command: update_command, ..) -> {
HandleCommands(commands, handle), CommandUpdate(command: update_command, ..)
-> {
case list.contains(commands, update_command.command) {
True -> Some(handle(new_context(bot, update), update_command))
False -> None
Expand Down
3 changes: 2 additions & 1 deletion src/telega/model.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ pub fn decode_message(json: Dynamic) -> Result(Message, dynamic.DecodeErrors) {
connected_website,
inline_keyboard_markup,
web_app_data,
is_from_offline ->
is_from_offline
->
Error(
list.concat([
all_errors(message_id),
Expand Down

0 comments on commit afa0f42

Please sign in to comment.