Skip to content

Commit f928c24

Browse files
chore(ci): use matrix os for example run
1 parent d08cff9 commit f928c24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ jobs:
209209
npm run test:${{matrix.build-type}}
210210
211211
test-example:
212-
runs-on: ubuntu-latest
212+
runs-on: ${{ matrix.os }}
213213
needs:
214214
- build
215215
strategy:
216216
matrix:
217217
node-version:
218218
- '24.10.0'
219+
os:
220+
- ubuntu-latest
219221
steps:
220222
- uses: actions/checkout@v4
221223

@@ -234,7 +236,7 @@ jobs:
234236
uses: actions/cache/restore@v4
235237
id: splicer-build
236238
with:
237-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
239+
key: splicer-${{ matrix.os }}-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
238240
path: |
239241
lib
240242
target

0 commit comments

Comments
 (0)