Skip to content

Commit f846b42

Browse files
committed
add use cache matrix to test
1 parent f7ead24 commit f846b42

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,45 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: [macos-13, macos-14, macos-latest, ubuntu-latest]
28-
use-cache: [true, false]
28+
enable-cache: ['true', 'false']
2929
runs-on: ${{ matrix.os }}
3030
steps:
3131
- uses: actions/checkout@v4
3232
- name: Install devbox
3333
uses: ./
3434
with:
3535
project-path: 'testdata'
36-
enable-cache: ${{ matrix.use-cache }}
36+
enable-cache: ${{ matrix.enable-cache }}
3737
disable-nix-access-token: "${{ github.ref != 'refs/heads/main' }}"
3838

3939
test-action-with-devbox-version:
4040
runs-on: ubuntu-latest
41+
strategy:
42+
matrix:
43+
enable-cache: ['true', 'false']
4144
steps:
4245
- uses: actions/checkout@v4
4346
- name: Install devbox
4447
uses: ./
4548
with:
4649
devbox-version: 0.13.6
4750
project-path: 'testdata'
51+
enable-cache: ${{ matrix.enable-cache }}
4852
disable-nix-access-token: "${{ github.ref != 'refs/heads/main' }}"
4953

5054
test-action-with-nix-version:
5155
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
enable-cache: ['true', 'false']
5259
steps:
5360
- uses: actions/checkout@v4
5461
- name: Install devbox
5562
uses: ./
5663
with:
5764
project-path: 'testdata'
5865
nix-version: v0.32.3
66+
enable-cache: ${{ matrix.enable-cache }}
5967
disable-nix-access-token: "${{ github.ref != 'refs/heads/main' }}"
6068

6169
test-action-with-sha256-checksum:

0 commit comments

Comments
 (0)