File tree 3 files changed +20
-6
lines changed
3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, pull_request]
3
3
jobs :
4
- test :
4
+ ruby :
5
5
name : Test on ruby ${{ matrix.ruby }} and rails ${{ matrix.rails }}
6
6
runs-on : ubuntu-latest
7
7
services :
62
62
bundler-cache : true # 'bundle install' and cache gems
63
63
- name : Run Rake with Rails ${{ matrix.rails }}
64
64
run : bundle exec rake
65
+ js :
66
+ name : JS
67
+ runs-on : ubuntu-latest
68
+ steps :
69
+ - uses : actions/checkout@v3
70
+ - uses : actions/setup-node@v3
71
+ with :
72
+ cache : ' yarn'
73
+ cache-dependency-path : packages/expressions/yarn.lock
74
+ - name : Run yarn lint + test
75
+ run : |
76
+ cd packages/expressions
77
+ yarn lint
78
+ yarn test
Original file line number Diff line number Diff line change 1
1
import { basename } from 'path'
2
2
3
- const modules = import . meta. glob ( " ./*.json" , { eager : true , import : 'default' } )
3
+ const modules = import . meta. glob ( ' ./*.json' , { eager : true , import : 'default' } )
4
4
5
5
export default Object . fromEntries ( Object . entries ( modules ) . map ( ( [ path , module ] ) => {
6
6
return [ basename ( path , '.json' ) , module ]
Original file line number Diff line number Diff line change 1
1
const modules = import . meta. glob ( './*.json' , { eager : true , import : 'default' } )
2
2
const schemas = Object . fromEntries ( Object . entries ( modules ) . map ( ( [ path , module ] ) => {
3
- const name = path . split ( '/' ) . pop ( ) . split ( '.' ) . shift ( ) ;
4
- return [ name == 'schema' ? 'default' : name , module ] ;
5
- } ) ) ;
3
+ const name = path . split ( '/' ) . pop ( ) . split ( '.' ) . shift ( )
4
+ return [ name === 'schema' ? 'default' : name , module ]
5
+ } ) )
6
6
7
- export default schemas ;
7
+ export default schemas
You can’t perform that action at this time.
0 commit comments