Skip to content

Commit 64a7c87

Browse files
authored
Adjust to 0.101.0 (#22)
* Adjust to 0.101.0
1 parent 03a0720 commit 64a7c87

5 files changed

Lines changed: 13 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: CI
3-
'on':
3+
"on":
44
workflow_dispatch:
55
push:
66
branches:
@@ -11,7 +11,7 @@ name: CI
1111

1212
defaults:
1313
run:
14-
working-directory: 'yethal.nushell'
14+
working-directory: "yethal.nushell"
1515

1616
env:
1717
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -27,12 +27,12 @@ jobs:
2727
- name: Checkout code
2828
uses: actions/checkout@v4
2929
with:
30-
path: 'yethal.nushell'
30+
path: "yethal.nushell"
3131

3232
- name: Set up Python 3.
3333
uses: actions/setup-python@v5
3434
with:
35-
python-version: '3.x'
35+
python-version: "3.x"
3636

3737
- name: Install dependencies
3838
run: |
@@ -42,7 +42,7 @@ jobs:
4242
run: yamllint .
4343

4444
- name: Run ansible-lint
45-
run: ansible-lint .
45+
run: ansible-lint . --exclude molecule/common/*
4646

4747
- name: Generate test list
4848
id: tests-list
@@ -69,19 +69,19 @@ jobs:
6969
- name: Checkout code
7070
uses: actions/checkout@v4
7171
with:
72-
path: 'yethal.nushell'
72+
path: "yethal.nushell"
7373

7474
- name: Set up Python 3.
7575
uses: actions/setup-python@v5
7676
with:
77-
python-version: '3.x'
77+
python-version: "3.x"
7878

7979
- name: Install dependencies
8080
run: pip3 install -r requirements.txt
8181

8282
- name: Run ${{ matrix.scenario }} test
8383
run: molecule test -s ${{ matrix.scenario }}
8484
env:
85-
PY_COLORS: '1'
86-
ANSIBLE_FORCE_COLOR: '1'
85+
PY_COLORS: "1"
86+
ANSIBLE_FORCE_COLOR: "1"
8787
MOLECULE_DISTRO: ${{ matrix.distro }}

defaults/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ nu_plugins:
2323
- nu_plugin_polars
2424
config_urls:
2525
- name: config.nu
26-
url: "https://raw.githubusercontent.com/nushell/nushell/{{ _nushell_version }}/crates/nu-utils/src/sample_config/default_config.nu"
26+
url: "https://raw.githubusercontent.com/nushell/nushell/{{ _nushell_version }}/crates/nu-utils/src/{{ 'default_files' if (_nushell_version is version('0.101.0', '>=')) else 'sample_config' }}/default_config.nu"
2727
- name: env.nu
28-
url: "https://raw.githubusercontent.com/nushell/nushell/{{ _nushell_version }}/crates/nu-utils/src/sample_config/default_env.nu"
29-
- name: login.nu
30-
url: "https://raw.githubusercontent.com/nushell/nushell/{{ _nushell_version }}/crates/nu-utils/src/sample_config/sample_login.nu"
28+
url: "https://raw.githubusercontent.com/nushell/nushell/{{ _nushell_version }}/crates/nu-utils/src/{{ 'default_files' if (_nushell_version is version('0.101.0', '>=')) else 'sample_config' }}/default_env.nu"

molecule/banner/verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
changed_when: false
4949
register: check_output
5050
failed_when: check_output.stdout != 'true'
51-
loop: "{{ nu_users|product(['config.nu', 'env.nu', 'login.nu']) }}"
51+
loop: "{{ nu_users|product(['config.nu', 'env.nu']) }}"
5252
loop_control:
53-
label: '{{ item[0] }} - {{ item[1] }}'
53+
label: "{{ item[0] }} - {{ item[1] }}"

molecule/common/configs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
config_urls:
55
- name: config.nu
66
- name: env.nu
7-
- name: login.nu
87

98
- name: Stat config files
109
ansible.builtin.stat:

molecule/no-configs/verify.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
config_urls:
1010
- name: config.nu
1111
- name: env.nu
12-
- name: login.nu
1312
tasks:
1413
- name: Include default assertions
1514
ansible.builtin.include_tasks: "../common/{{ file }}.yml"

0 commit comments

Comments
 (0)