82
82
# the devbox.json tests. We can require the other tests to complete before
83
83
# merging, while keeping the others as an additional non-required signal
84
84
run-devbox-json-tests : [true, false]
85
+ # Run tests on:
86
+ # 1. the oldest supported nix version (which is 2.9.0? But determinate-systems installer has 2.12.0)
87
+ # 2. nix version 2.17.0 which introduces a new code path that minimizes nixpkgs downloads.
88
+ # 3. latest nix version (currently, that is 2.17.0, so omitted)
89
+ nix-version : ["2.12.0", "2.17.0"]
85
90
exclude :
86
91
- is-main : false
87
92
os : " ${{ inputs.run-mac-tests && 'dummy' || 'macos-latest' }}"
@@ -112,6 +117,7 @@ jobs:
112
117
with :
113
118
logger : pretty
114
119
extra-conf : experimental-features = ca-derivations fetch-closure
120
+ nix-package-url : https://releases.nixos.org/nix/nix-${{ matrix.nix-version }}/nix-${{ matrix.nix-version }}-${{ runner.arch == 'X64' && 'x86_64' || 'aarch64' }}-${{ runner.os == 'macOS' && 'darwin' || 'linux' }}.tar.xz
115
121
- name : Run tests
116
122
env :
117
123
# For devbox.json tests, we default to non-debug mode since the debug output is less useful than for unit testscripts.
@@ -163,7 +169,7 @@ jobs:
163
169
strategy :
164
170
matrix :
165
171
os : [ubuntu-latest, macos-latest]
166
- version : [2.15.1, 2.16.1, 2.17.0]
172
+ nix- version : [2.15.1, 2.16.1, 2.17.0]
167
173
runs-on : ${{ matrix.os }}
168
174
steps :
169
175
- uses : actions/checkout@v3
@@ -177,7 +183,7 @@ jobs:
177
183
with :
178
184
logger : pretty
179
185
extra-conf : experimental-features = ca-derivations fetch-closure
180
- nix-package-url : https://releases.nixos.org/nix/nix-${{ matrix.version }}/nix-${{ matrix.version }}-${{ runner.arch == 'X64' && 'x86_64' || 'aarch64' }}-${{ runner.os == 'macOS' && 'darwin' || 'linux' }}.tar.xz
186
+ nix-package-url : https://releases.nixos.org/nix/nix-${{ matrix.nix- version }}/nix-${{ matrix.nix- version }}-${{ runner.arch == 'X64' && 'x86_64' || 'aarch64' }}-${{ runner.os == 'macOS' && 'darwin' || 'linux' }}.tar.xz
181
187
- name : Run devbox install, devbox run, devbox rm
182
188
run : |
183
189
echo "::group::Nix version"
0 commit comments