Skip to content

Commit f6478bd

Browse files
committed
feat: add integration test on different ubuntu versions
1 parent 62ab796 commit f6478bd

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

.semaphore/integration.yml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ blocks:
3030
commands:
3131
- test-results publish --no-compress priv/parsers/$PARSER/in.xml -p $PARSER
3232
- artifact pull job test-results/junit.json -d /tmp/junit.json
33-
- cat <<< $(jq 'walk(if type == "object" then del(.type, .semaphoreEnv) else . end)' --sort-keys . priv/parsers/$PARSER/out.json) > priv/parsers/$PARSER/out.json
34-
- cat <<< $(jq 'walk(if type == "object" then del(.type, .semaphoreEnv) else . end)' --sort-keys . /tmp/junit.json) > /tmp/junit.json
33+
- 'cat <<< $(jq ''walk(if type == "object" then del(.type, .semaphoreEnv) else . end)'' --sort-keys . priv/parsers/$PARSER/out.json) > priv/parsers/$PARSER/out.json'
34+
- 'cat <<< $(jq ''walk(if type == "object" then del(.type, .semaphoreEnv) else . end)'' --sort-keys . /tmp/junit.json) > /tmp/junit.json'
3535
- diff priv/parsers/$PARSER/out.json /tmp/junit.json
3636
- name: Merging - directory as input
3737
commands:
3838
- test-results publish --no-compress priv/merging
3939
- artifact pull job test-results/junit.json -d /tmp/junit.json
40-
- cat <<< $(jq 'walk(if type == "object" then del(.type, .semaphoreEnv) else . end)' --sort-keys . priv/merging/out.json) > priv/merging/out.json
41-
- cat <<< $(jq 'walk(if type == "object" then del(.type, .semaphoreEnv) else . end)' --sort-keys . /tmp/junit.json) > /tmp/junit.json
40+
- 'cat <<< $(jq ''walk(if type == "object" then del(.type, .semaphoreEnv) else . end)'' --sort-keys . priv/merging/out.json) > priv/merging/out.json'
41+
- 'cat <<< $(jq ''walk(if type == "object" then del(.type, .semaphoreEnv) else . end)'' --sort-keys . /tmp/junit.json) > /tmp/junit.json'
4242
- diff priv/merging/out.json /tmp/junit.json
4343
- name: Integration tests - generate pipeline report
4444
dependencies:
@@ -47,18 +47,45 @@ blocks:
4747
jobs:
4848
- name: generate pipeline report
4949
commands:
50+
- test-results resource-metrics REPORT.md
5051
- test-results gen-pipeline-report --no-compress
5152
- name: Integration tests - workflow level
5253
dependencies:
5354
- Integration tests - generate pipeline report
55+
- Integration tests- generate pipeline report Ubuntu 22.04
56+
- Integration tests- generate pipeline report Ubuntu 24.04
5457
task:
5558
jobs:
5659
- name: Generate pipeline summary
5760
commands:
58-
- "artifact pull workflow test-results/${SEMAPHORE_PIPELINE_ID}-summary.json -d /tmp/summary.json"
61+
- 'artifact pull workflow test-results/${SEMAPHORE_PIPELINE_ID}-summary.json -d /tmp/summary.json'
5962
- cat <<< $(jq --sort-keys . priv/workflow/summary-out.json) > priv/workflow/summary-out.json
6063
- cat <<< $(jq --sort-keys . /tmp/summary.json) > /tmp/summary.json
6164
- diff /tmp/summary.json priv/workflow/summary-out.json
65+
- name: Integration tests- generate pipeline report Ubuntu 24.04
66+
dependencies:
67+
- Integration tests
68+
task:
69+
agent:
70+
machine:
71+
type: f1-standard-2
72+
os_image: ubuntu2404
73+
jobs:
74+
- name: generate pipeline report
75+
commands:
76+
- test-results resource-metrics REPORT.md
77+
- name: Integration tests- generate pipeline report Ubuntu 22.04
78+
dependencies:
79+
- Integration tests
80+
task:
81+
agent:
82+
machine:
83+
type: f1-standard-2
84+
os_image: ubuntu2204
85+
jobs:
86+
- name: generate pipeline report
87+
commands:
88+
- test-results resource-metrics REPORT.md
6289
promotions:
6390
- name: Release
6491
pipeline_file: goreleaser.yml

0 commit comments

Comments
 (0)