File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 75
75
{%- endif %}
76
76
{%- endif %}
77
77
runs-on : {% if os_mac or os_win %}{{ "${{ matrix.os }}" }}{% else %}ubuntu-latest{% endif %}
78
- {%- if crystal_nightly %}
79
- env :
80
- SHARDS_OPTS : --ignore-crystal-version
78
+ {%- if os_win and cache_shards and is_app %}
79
+ defaults :
80
+ run :
81
+ shell : bash
81
82
{%- endif %}
82
83
steps :
83
84
- name : Download source
@@ -103,9 +104,9 @@ jobs:
103
104
{%- endif %}
104
105
- name : Install shards
105
106
{%- if is_app %}
106
- run : {% if cache_shards %}shards check || {% endif %}shards install
107
+ run : {% if cache_shards %}shards check || {% endif %}shards install{% if crystal_nightly %} --ignore-crystal-version{% endif %}
107
108
{%- else %}
108
- run : shards update
109
+ run : shards update{% if crystal_nightly %} --ignore-crystal-version{% endif %}
109
110
{%- endif %}
110
111
- name : Run tests
111
112
run : crystal spec
@@ -115,7 +116,7 @@ jobs:
115
116
{%- endif %}
116
117
{%- if tool_format %}
117
118
- name : Check formatting
118
- run : crystal tool format && git diff --exit-code
119
+ run : crystal tool format{% if is_app %}; git diff --exit-code{% else %} --check{% endif %}
119
120
{%- set latest = "== 'latest'" if not unroll else "!= 'nightly'" if not crystal_ver else "== null" -%}
120
121
{%- if os_win and (crystal_nightly or crystal_ver) %}
121
122
if : matrix.crystal {{ latest }} && matrix.os == 'ubuntu-latest'
You can’t perform that action at this time.
0 commit comments