This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Node.js CI
1
+ name : Tests
2
2
3
3
on : push
4
4
5
- permissions : write-all
5
+ permissions : read-all
6
+
7
+ env :
8
+ SOL_AST_COMPILER_CACHE : ${{ github.workspace }}/.compiler_cache
6
9
7
10
jobs :
8
11
build :
20
23
with :
21
24
node-version : ${{ matrix.node-version }}
22
25
23
- - run : yarn install
26
+ - name : Install Solc AST binary
27
+ run : yarn global add solc-typed-ast
28
+
29
+ - name : Install dependencies
30
+ run : yarn install
24
31
25
- - run : yarn test
26
- env :
27
- SOL_AST_COMPILER_CACHE : /home/runner/work/_temp/.compiler_cache
32
+ - name : Pre-download compilers from historical builds archive
33
+ run : |
34
+ sol-ast-compile --download-compilers native wasm
35
+ find $SOL_AST_COMPILER_CACHE -name 'list.json' -delete
36
+ find $SOL_AST_COMPILER_CACHE -name '*v0.5.17*' -delete
28
37
38
+ - name : Run tests
39
+ run : yarn test
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ contract BasicSample {
19
19
/**
20
20
* @notice External function that returns a bool
21
21
* @dev A dev comment
22
- * @param _magicNumber A parameter description
22
+ * @param _magicNumber A parameter description
23
23
* @param _name Another parameter description
24
24
* @return _isMagic Some return data
25
25
*/
@@ -50,7 +50,7 @@ contract BasicSample {
50
50
* @notice External function that returns a bool
51
51
* @dev A dev comment
52
52
* @param _magicNumber A parameter description
53
- * @param _name Another parameter description
53
+ * @param _name Another parameter description
54
54
* @return _isMagic Some return data
55
55
* @return Test test
56
56
*/
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export function parseNodeNatspec(node: SolcContractNode): Natspec {
27
27
result . inheritdoc = { content : tagMatch [ 2 ] } ;
28
28
}
29
29
} else if ( tagName === 'param' || tagName === 'return' ) {
30
- const tagMatch = line . match ( / ^ \s * @ ( \w + ) ( \w + ) ( .* ) $ / ) ;
30
+ const tagMatch = line . match ( / ^ \s * @ ( \w + ) * ( \w + ) ( .* ) $ / ) ;
31
31
if ( tagMatch ) {
32
32
currentTag = { name : tagMatch [ 2 ] , content : tagMatch [ 3 ] . trim ( ) } ;
33
33
result [ tagName === 'param' ? 'params' : 'returns' ] . push ( currentTag ) ;
34
34
}
35
35
} else {
36
- const tagMatch = line . match ( / ^ \s * @ ( \w + ) ( .* ) $ / ) ;
36
+ const tagMatch = line . match ( / ^ \s * @ ( \w + ) * ( .* ) $ / ) ;
37
37
if ( tagMatch ) {
38
38
currentTag = { name : tagName , content : tagMatch [ 2 ] } ;
39
39
result . tags . push ( currentTag ) ;
You can’t perform that action at this time.
0 commit comments