File tree Expand file tree Collapse file tree 5 files changed +101
-2
lines changed Expand file tree Collapse file tree 5 files changed +101
-2
lines changed Original file line number Diff line number Diff line change 113
113
114
114
if [[ -n " ${ADDER:- } " ]]; then
115
115
ARGS+=(-e " ADDER=${ADDER} " )
116
- ARGS+=(-e " ADDER_METADATA=/contracts/adder/target/ink/adder .json" )
116
+ ARGS+=(-e " ADDER_METADATA=/contracts/adder/target/ink/metadata .json" )
117
117
fi
118
118
119
119
if [[ -n " ${BUTTON_GAME_METADATA:- } " ]]; then
Original file line number Diff line number Diff line change 48
48
uses : actions-rs/toolchain@v1
49
49
50
50
- name : Check excluded package
51
+ env :
52
+ RUSTC_WRAPPER : " "
53
+ RUSTC_WORKSPACE_WRAPPER : sccache
51
54
run : |
52
55
cd ${{ matrix.package }}
53
56
rustup component add clippy rustfmt
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : GH Action YAML linter
3
+
4
+ on :
5
+ pull_request :
6
+ paths :
7
+ - " .github/**/**.yml"
8
+ - " .github/**/**.yaml"
9
+
10
+ concurrency :
11
+ group : ${{ github.ref }}-${{ github.workflow }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ main :
16
+ name : YAML Lint
17
+ runs-on : ubuntu-20.04
18
+ steps :
19
+ - name : GIT | Checkout source code
20
+ uses : actions/checkout@v3
21
+ with :
22
+ repository : Cardinal-Cryptography/aleph-node
23
+ token : ${{ secrets.CI_GH_TOKEN }}
24
+
25
+ - name : GIT | Check diff
26
+ id : check-diff
27
+ run : |
28
+ git fetch --quiet origin ${GITHUB_BASE_REF}:refs/remotes/origin/${GITHUB_BASE_REF}
29
+ YAML_FILES=`git --no-pager diff origin/${GITHUB_BASE_REF} --name-only \
30
+ | grep -E ".github\/.*\/.*(.yaml|.yml)" | tr '\n' ' '`
31
+ echo "Changed YAML files: ${YAML_FILES}"
32
+ echo "YAML_FILES=`echo $YAML_FILES`" >> $GITHUB_ENV
33
+
34
+ - name : LINT | Execute yaml-lint
35
+
36
+ with :
37
+ strict : true
38
+ file_or_dir : ${{ env.YAML_FILES }}
39
+ config_file : .yamllint
Original file line number Diff line number Diff line change
1
+ ---
2
+ extends: default
3
+
4
+ rules:
5
+ braces:
6
+ min-spaces-inside: 0
7
+ max-spaces-inside: 0
8
+ min-spaces-inside-empty: -1
9
+ max-spaces-inside-empty: -1
10
+ brackets:
11
+ min-spaces-inside: 0
12
+ max-spaces-inside: 0
13
+ min-spaces-inside-empty: -1
14
+ max-spaces-inside-empty: -1
15
+ colons:
16
+ max-spaces-before: 0
17
+ max-spaces-after: 1
18
+ commas:
19
+ max-spaces-before: 0
20
+ min-spaces-after: 1
21
+ max-spaces-after: 1
22
+ comments:
23
+ level: warning
24
+ require-starting-space: true
25
+ min-spaces-from-content: 2
26
+ comments-indentation: disable
27
+ document-end: disable
28
+ document-start: enable
29
+ empty-lines:
30
+ max: 2
31
+ max-start: 1
32
+ max-end: 1
33
+ empty-values:
34
+ forbid-in-block-mappings: false
35
+ forbid-in-flow-mappings: false
36
+ hyphens:
37
+ max-spaces-after: 1
38
+ indentation:
39
+ spaces: consistent
40
+ indent-sequences: true
41
+ check-multi-line-strings: false
42
+ key-duplicates: enable
43
+ key-ordering: disable
44
+ line-length:
45
+ max: 100
46
+ level: error
47
+ allow-non-breakable-words: true
48
+ allow-non-breakable-inline-mappings: false
49
+ new-line-at-end-of-file: enable
50
+ new-lines:
51
+ type: unix
52
+ trailing-spaces: enable
53
+ truthy:
54
+ allowed-values:
55
+ - "true"
56
+ - "false"
57
+ check-keys: false
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ ink_build cargo contract build --release --quiet 1>&2
31
31
export ADDER
32
32
33
33
ADDER=$(
34
- ink_build cargo contract instantiate --url " $NODE_URL " --suri " $AUTHORITY " --skip-confirm --output-json \
34
+ ink-build cargo contract instantiate --url " $NODE_URL " --suri " $AUTHORITY " --skip-confirm --output-json \
35
35
| jq -r " .contract"
36
36
)
37
37
echo " $ADDER "
You can’t perform that action at this time.
0 commit comments