forked from linux-kdevops/linux-fork-for-kpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
44 lines (38 loc) · 1.15 KB
/
action.yml
File metadata and controls
44 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-2.0
---
name: Setup kdevops
description: Setup kdevops workspace
inputs:
dir:
description: 'Directory'
required: true
default: 'workdir'
ci_workflow:
required: false
type: string
default: 'demo'
runs:
using: "composite"
steps:
- name: Run CI tests
working-directory: ${{ inputs.dir }}/kdevops
shell: bash
run: |
make ci-test CI_WORKFLOW="${{ inputs.ci_workflow }}"
echo -e "Kernel tests results:\n" > ci.commit_extra
- name: Generate CI commit info
working-directory: ${{ inputs.dir }}/kdevops
shell: bash
run: |
find workflows/blktests/results/last-run/ -name '*.dmesg.log' \
-exec tail -n 1 {} + >> ci.commit_extra
echo -e "\n\n" >> ci.commit_extra
echo -e "Userspace test results:\n" >> ci.commit_extra
find workflows/blktests/results/last-run/ -name '*.userspace.log' \
-exec tail -n 1 {} + >> ci.commit_extra
echo -e "\n\n" >> ci.commit_extra
if grep -i -q "fail" ci.commit_extra ; then
echo "fail" > ci.result
else
echo "ok" > ci.result
fi