File tree 5 files changed +11
-13
lines changed
5 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 12
12
BUILD_EMBEDDED : true
13
13
DIALYZER_PLT_PRIV : true
14
14
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15
- DEFAULT_ELIXIR_VERSION : 1.16
16
- DEFAULT_OTP_VERSION : 26.2
15
+ DEFAULT_ELIXIR_VERSION : 1.17
16
+ DEFAULT_OTP_VERSION : 27.1
17
17
18
18
jobs :
19
19
format :
56
56
- otp : " 26.2"
57
57
elixir : " 1.16"
58
58
runs-on : ubuntu-22.04
59
- - otp : " 26.2 "
59
+ - otp : " 27.1 "
60
60
elixir : " main"
61
61
runs-on : ubuntu-latest
62
62
- runs-on : ubuntu-22.04
@@ -166,7 +166,7 @@ jobs:
166
166
- run : mix dialyzer --plt
167
167
- uses : actions/upload-artifact@v4
168
168
with :
169
- name : dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setup-elixir .outputs.otp-version }}-${{ steps.setup-elixir .outputs.elixir-version }}
169
+ name : dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setupBEAM .outputs.otp-version }}-${{ steps.setupBEAM .outputs.elixir-version }}
170
170
path : priv/plts/
171
171
172
172
dialyzer_test :
@@ -203,7 +203,7 @@ jobs:
203
203
- run : mix compile --warning-as-errors
204
204
- uses : actions/download-artifact@v4
205
205
with :
206
- name : dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setup-elixir .outputs.otp-version }}-${{ steps.setup-elixir .outputs.elixir-version }}
206
+ name : dialyzer_plt_${{ env.MIX_ENV }}-${{ steps.setupBEAM .outputs.otp-version }}-${{ steps.setupBEAM .outputs.elixir-version }}
207
207
path : priv/plts/
208
208
- run : mix dialyzer
209
209
Original file line number Diff line number Diff line change 1
- erlang 26.2.1
2
- elixir 1.16.1
1
+ erlang 27.1.2
2
+ elixir 1.17.3
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ defmodule Crontab.CronExpression.Parser do
117
117
** (RuntimeError) Can't parse fooo as minute.
118
118
119
119
"""
120
- @ spec parse! ( binary , boolean ) :: CronExpression . t ( ) | no_return
120
+ @ spec parse! ( binary , boolean ) :: CronExpression . t ( )
121
121
def parse! ( cron_expression , extended \\ false ) do
122
122
case parse ( cron_expression , extended ) do
123
123
{ :ok , result } -> result
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ defmodule Crontab.DateChecker do
27
27
true
28
28
29
29
"""
30
- @ spec matches_date? ( cron_expression :: CronExpression . t ( ) , date :: date ) ::
31
- boolean | no_return
30
+ @ spec matches_date? ( cron_expression :: CronExpression . t ( ) , date :: date ) :: boolean
32
31
def matches_date? ( cron_expression_or_condition_list , date )
33
32
34
33
def matches_date? ( % CronExpression { reboot: true } , _ ) ,
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ defmodule Crontab.Scheduler do
71
71
** (RuntimeError) Special identifier @reboot is not supported.
72
72
73
73
"""
74
- @ spec get_next_run_date! ( CronExpression . t ( ) , NaiveDateTime . t ( ) , integer ) ::
75
- NaiveDateTime . t ( ) | no_return
74
+ @ spec get_next_run_date! ( CronExpression . t ( ) , NaiveDateTime . t ( ) , integer ) :: NaiveDateTime . t ( )
76
75
def get_next_run_date! (
77
76
cron_expression ,
78
77
date \\ DateTime . to_naive ( DateTime . utc_now ( ) ) ,
@@ -192,7 +191,7 @@ defmodule Crontab.Scheduler do
192
191
193
192
"""
194
193
@ spec get_previous_run_date! ( CronExpression . t ( ) , NaiveDateTime . t ( ) , integer ) ::
195
- NaiveDateTime . t ( ) | no_return
194
+ NaiveDateTime . t ( )
196
195
def get_previous_run_date! (
197
196
cron_expression ,
198
197
date \\ DateTime . to_naive ( DateTime . utc_now ( ) ) ,
You can’t perform that action at this time.
0 commit comments