Skip to content

Commit 387c698

Browse files
committed
add source/dist check
1 parent 5434c12 commit 387c698

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,21 @@ jobs:
5151
- name: Clean distribution files
5252
run: npm run clean
5353
- name: Test sources
54-
run: npm test
54+
run: |
55+
if [[ `node bin/asc --version` != *"-dev" ]]; then
56+
echo "ERROR: Not testing sources"
57+
exit 1
58+
fi
59+
npm test
5560
- name: Build distribution files
5661
run: npm run build
5762
- name: Test distribution
58-
run: npm test
63+
run: |
64+
if [[ `node bin/asc --version` == *"-dev" ]]; then
65+
echo "ERROR: Not testing distribution"
66+
exit 1
67+
fi
68+
npm test
5969
test-windows:
6070
name: "Compiler (Windows, node current)"
6171
runs-on: windows-latest

0 commit comments

Comments
 (0)