File tree Expand file tree Collapse file tree 3 files changed +26
-16
lines changed Expand file tree Collapse file tree 3 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 4343        with :
4444          toolchain : stable 
4545      - name : Validate CDDL files 
46-         run : ./scripts/test.sh 
46+         run : ./scripts/cddl/ test.sh 
4747      - name : Archive CDDL files 
4848        uses : actions/upload-artifact@v3 
4949        with :
Original file line number Diff line number Diff line change 1+ #!  /bin/bash
2+ set  -ex
3+ 
4+ SCRIPT_DIR=$( cd $( dirname " $0 " )   &&  pwd  -P) 
5+ ROOT=$( dirname $SCRIPT_DIR ) 
6+ 
7+ echo  ROOT $ROOT 
8+ 
9+ if  !  [ -x  " $( command -v cddl) "   ] ||  [ " $1 "   =  " --upgrade"   ];  then 
10+   echo  ' Installing cddl' 
11+   cargo install cddl
12+ fi 
13+ 
14+ if  [[ " $( npm list parse5) "   =~  " empty"   ]] ||  [ " $1 "   =  " --upgrade"   ];  then 
15+   echo  ' Installing npm package parse5' 
16+   npm install parse5
17+ fi 
18+ 
19+ #  Extract CDDL content from spec into files
20+ $ROOT /cddl/generate.js
21+ 
22+ cddl compile-cddl --cddl local.cddl
23+ cddl compile-cddl --cddl remote.cddl
Original file line number Diff line number Diff line change 44SCRIPT_DIR=$( cd $( dirname " $0 " )   &&  pwd  -P) 
55ROOT=$( dirname $SCRIPT_DIR ) 
66
7- if  !  [ -x  " $( command -v cddl) "   ] ||  [ " $1 "   =  " --upgrade"   ];  then 
8-   echo  ' Installing cddl' 
9-   cargo install cddl
10- fi 
11- 
12- if  [[ " $( npm list parse5) "   =~  " empty"   ]] ||  [ " $1 "   =  " --upgrade"   ];  then 
13-   echo  ' Installing npm package parse5' 
14-   npm install parse5
15- fi 
16- 
17- #  Extract CDDL content from spec into files
18- $ROOT /scripts/cddl/generate.js
19- 
20- cddl compile-cddl --cddl local.cddl
21- cddl compile-cddl --cddl remote.cddl
7+ sh $ROOT /scripts/cddl/test.sh
8+ node $ROOT /scripts/formatter/no_split_var.js
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments