Skip to content

Commit

Permalink
Add nightly CI format job (#396)
Browse files Browse the repository at this point in the history
* Adjust code to work around regression
  • Loading branch information
Blacksmoke16 authored Apr 9, 2024
1 parent faf0eb4 commit df3082c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
- uses: actions/checkout@v4
- name: Check Format
run: crystal tool format --check
check_format_nightly:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:nightly-alpine
steps:
- uses: actions/checkout@v4
- name: Check Format
run: crystal tool format --check
coding_standards:
runs-on: ubuntu-latest
container:
Expand Down
8 changes: 2 additions & 6 deletions src/components/routing/src/requirement/enum.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@
# class ExampleController < ATH::Controller
# @[ARTA::Get(
# "/color/{color}",
# requirements: {
# "color" => ART::Requirement::Enum(Color).new,
# }
# requirements: {"color" => ART::Requirement::Enum(Color).new},
# )]
# def get_color(color : Color) : Color
# color
# end
#
# @[ARTA::Get(
# "/rgb-color/{color}",
# requirements: {
# "color" => ART::Requirement::Enum(Color).new(:red, :green, :blue),
# }
# requirements: {"color" => ART::Requirement::Enum(Color).new(:red, :green, :blue)},
# )]
# def get_rgb_color(color : Color) : Color
# color
Expand Down
8 changes: 2 additions & 6 deletions src/components/routing/src/requirement/requirement.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@
# class ExampleController < ATH::Controller
# @[ARTA::Get(
# "/user/{id}",
# requirements: {
# "id" => ART::Requirement::DIGITS,
# }
# requirements: {"id" => ART::Requirement::DIGITS},
# )]
# def get_user(id : Int64) : Int64
# id
# end
#
# @[ARTA::Get(
# "/article/{slug}",
# requirements: {
# "slug" => ART::Requirement::ASCII_SLUG,
# }
# requirements: {"slug" => ART::Requirement::ASCII_SLUG},
# )]
# def get_article(slug : String) : String
# slug
Expand Down
2 changes: 1 addition & 1 deletion src/components/spec/spec/athena-spec_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct TestWithTest < ASPEC::TestCase
@[TestWith(
two: {2, 4},
three: {3, 9},
"with spaces": {4, 16}
"with spaces": {4, 16},
)]
def test_squares(value : Int32, expected : Int32) : Nil
(value ** 2).should eq expected
Expand Down

0 comments on commit df3082c

Please sign in to comment.