File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,30 @@ jobs:
37
37
- name : Type Check
38
38
run : npm run check --if-present
39
39
- name : Test ES
40
- if : ${{matrix.node-version < 12 }}
40
+ if : ${{!startsWith( matrix.node-version, '10.') }}
41
41
run : npm run test:es --if-present
42
42
- name : Test CommonJS
43
43
run : npm run test:cjs --if-present
44
+ validate-types :
45
+ name : Check type use
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+ - name : Cache node_modules
50
+ id : cache-modules
51
+ uses : actions/cache@v1
52
+ with :
53
+ path : node_modules
54
+ key : 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
55
+ - name : Install
56
+ if : steps.cache-modules.outputs.cache-hit != 'true'
57
+ run : npm install
58
+ - name : Test Typesript
59
+ run : npm run test:types:ts
60
+ - name : Test ES
61
+ run : npm run test:types:esm
62
+ - name : Test CommonJS
63
+ run : npm run test:types:cjs
44
64
publish :
45
65
name : Publish
46
66
needs : test
You can’t perform that action at this time.
0 commit comments