Skip to content

Commit 3d8be40

Browse files
committed
Tweak configurator
1 parent e1ca52b commit 3d8be40

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/configurator.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ jobs:
7575
{%- endif %}
7676
{%- endif %}
7777
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
8182
{%- endif %}
8283
steps:
8384
- name: Download source
@@ -103,9 +104,9 @@ jobs:
103104
{%- endif %}
104105
- name: Install shards
105106
{%- 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 %}
107108
{%- else %}
108-
run: shards update
109+
run: shards update{% if crystal_nightly %} --ignore-crystal-version{% endif %}
109110
{%- endif %}
110111
- name: Run tests
111112
run: crystal spec
@@ -115,7 +116,7 @@ jobs:
115116
{%- endif %}
116117
{%- if tool_format %}
117118
- 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 %}
119120
{%- set latest = "== 'latest'" if not unroll else "!= 'nightly'" if not crystal_ver else "== null" -%}
120121
{%- if os_win and (crystal_nightly or crystal_ver) %}
121122
if: matrix.crystal {{ latest }} && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)