Skip to content

Commit 6008e01

Browse files
committed
Add example project for karma
1 parent f72d5f9 commit 6008e01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/karma.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
run: find test -name "*.spec.ts" -o -name "*.spec.js" > test_list.txt
4646
- name: Run all tests
4747
run: |
48-
KARMA_FILES=$(cat test_list.txt | jq -R -s -c 'split("\n")[:-1]')
48+
export KARMA_FILES=$(cat test_list.txt | jq -R -s -c 'split("\n")[:-1]')
4949
npx karma start --single-run
5050
- name: Record tests
5151
run: launchable record tests karma test-results.json
5252
- name: Request subset
5353
run: cat test_list.txt | launchable subset --target 25% karma > subset.txt
5454
- name: Run subset of tests
5555
run: |
56-
KARMA_FILES=$(cat subset.txt | jq -R -s -c 'split("\n")[:-1]')
56+
export KARMA_FILES=$(cat subset.txt | jq -R -s -c 'split("\n")[:-1]')
5757
npx karma start --single-run

0 commit comments

Comments
 (0)