File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 9
9
- " go.mod"
10
10
- " go.sum"
11
11
- " Taskfile.ya?ml"
12
+ - " DistTasks.ya?ml"
12
13
- " **.go"
13
14
pull_request :
14
15
paths :
15
16
- " .github/workflows/publish-go-tester-task.ya?ml"
16
17
- " go.mod"
17
18
- " go.sum"
18
19
- " Taskfile.ya?ml"
20
+ - " DistTasks.ya?ml"
19
21
- " **.go"
20
22
workflow_dispatch :
21
23
repository_dispatch :
43
45
44
46
- name : Build
45
47
run : |
46
- PACKAGE_NAME_PREFIX="${{ github.workflow }} "
48
+ PACKAGE_NAME_PREFIX="test "
47
49
if [ "${{ github.event_name }}" = "pull_request" ]; then
48
50
PACKAGE_NAME_PREFIX="$PACKAGE_NAME_PREFIX-${{ github.event.number }}"
49
51
fi
Original file line number Diff line number Diff line change 19
19
sh : echo "{{now | date "20060102"}}"
20
20
TAG :
21
21
sh : echo "$(git tag --points-at=HEAD 2> /dev/null | head -n1)"
22
- VERSION : " {{if .NIGHTLY}}nightly-{{.TIMESTAMP_SHORT}}{{else if .TAG}}{{.TAG}}{{else}}snapshot{{end}}"
22
+ VERSION : " {{if .NIGHTLY}}nightly-{{.TIMESTAMP_SHORT}}{{else if .TAG}}{{.TAG}}{{else}}{{.PACKAGE_NAME_PREFIX}}git- snapshot{{end}}"
23
23
CONFIGURATION_PACKAGE : " github.com/arduino/{{.PROJECT_NAME}}/internal/configuration"
24
24
LDFLAGS : >-
25
25
-ldflags
Original file line number Diff line number Diff line change 10
10
# Ask Gon for zip output to force notarization process to take place.
11
11
# The CI will ignore the zip output, using the signed binary only.
12
12
zip {
13
- output_path = " arduino-lint .zip"
13
+ output_path = " unused .zip"
14
14
}
Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ def test_version(run_command):
206
206
assert result .ok
207
207
output_list = result .stdout .strip ().split (sep = " " )
208
208
version = output_list [0 ]
209
- assert semver .VersionInfo .isvalid (version = version ) or version == "snapshot" or "nightly" in version
209
+ assert semver .VersionInfo .isvalid (version = version ) or version == "git- snapshot" or "nightly" in version
210
210
dateutil .parser .isoparse (output_list [1 ])
211
211
212
212
result = run_command (cmd = ["--version" , "--format" , "json" ])
213
213
assert result .ok
214
214
version_output = json .loads (result .stdout )
215
215
if version_output ["version" ] != "" :
216
216
version = version_output ["version" ]
217
- assert semver .VersionInfo .isvalid (version = version ) or version == "snapshot" or "nightly" in version
217
+ assert semver .VersionInfo .isvalid (version = version ) or version == "git- snapshot" or "nightly" in version
218
218
assert version_output ["commit" ] != ""
219
219
dateutil .parser .isoparse (version_output ["buildTimestamp" ])
220
220
You can’t perform that action at this time.
0 commit comments