Skip to content

Commit 54b5cc6

Browse files
authored
Instead of downloading testing.nu via wget, use checkout (#4)
1 parent bf003e1 commit 54b5cc6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
schedule:
99
- cron: '0 7 * * *' # daily at 07:00 UTC
1010

11-
env:
12-
testing-file: https://raw.githubusercontent.com/nushell/nushell/6a759abcbd9bdc6fb4bbd60144e309bd1a79786b/crates/nu-std/testing.nu
13-
1411
jobs:
1512
build-nu:
1613
name: Build Nushell from `main`
@@ -103,14 +100,18 @@ jobs:
103100
- name: Ensure Nushell binary is executable
104101
run: chmod +x ./nu
105102

106-
- name: Download testing.nu
107-
run: wget ${{ env.testing-file }}
103+
- name: Checkout testing.nu
104+
uses: actions/checkout@v4
105+
with:
106+
repository: nushell/nushell
107+
sparse-checkout: crates/nu-std/testing.nu
108+
path: .nushell
108109

109110
- name: Ensure plugin is executable
110111
run: chmod +x ${{ matrix.plugin.plugin }}
111112

112113
- name: Run tests
113-
run: ./nu -n -c 'use testing.nu; testing run-tests --path ${{ matrix.plugin.tests-dir }} --plugins ["${{ matrix.plugin.plugin }}"]'
114+
run: ./nu -n -c 'use .nushell/crates/nu-std/testing.nu; testing run-tests --path ${{ matrix.plugin.tests-dir }} --plugins ["${{ matrix.plugin.plugin }}"]'
114115

115116
- if: contains(matrix.plugin.needs, 'rust')
116117
name: Run Rust-based tests

0 commit comments

Comments
 (0)