This commit is contained in:
@@ -29,40 +29,29 @@ jobs:
|
||||
|
||||
##################################### TO NOT CHANGE #################################
|
||||
|
||||
- name: Define give_runs_log function
|
||||
- name: Execute give_runs_log from test-ci repo
|
||||
run: |
|
||||
give_runs_log() {
|
||||
local log_file="$1"
|
||||
if [ -f "$log_file" ]; then
|
||||
head -n -1 "$log_file"
|
||||
exit_code=$(tail -n 1 "$log_file")
|
||||
if [[ "$exit_code" == "Exit Code: 1" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
chmod +x test-ci/scripts/give_runs_log.sh
|
||||
|
||||
- name: Pixi download
|
||||
run: |
|
||||
give_runs_log "outputs/pixi.log"
|
||||
./test-ci/scripts/give_runs_log.sh "outputs/pixi.log"
|
||||
|
||||
- name: Run tests and generate reports
|
||||
run: |
|
||||
give_runs_log "outputs/test-ci.log"
|
||||
./test-ci/scripts/give_runs_log.sh "outputs/test-ci.log"
|
||||
|
||||
- name: Prepare the push to wiki
|
||||
run: |
|
||||
give_runs_log "outputs/wiki-clone.log"
|
||||
./test-ci/scripts/give_runs_log.sh "outputs/wiki-clone.log"
|
||||
|
||||
- name: Commit to wiki
|
||||
run: |
|
||||
give_runs_log "outputs/commit-push-wiki.log"
|
||||
./test-ci/scripts/give_runs_log.sh "outputs/commit-push-wiki.log"
|
||||
|
||||
- name: Wiki report URLs
|
||||
run: |
|
||||
give_runs_log "outputs/wiki-report-urls.log"
|
||||
./test-ci/scripts/give_runs_log.sh "outputs/wiki-report-urls.log"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user