-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.42 KB
/
test_example.yml
File metadata and controls
55 lines (45 loc) · 1.42 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
45
46
47
48
49
50
51
52
53
54
55
name: Docker
on:
push:
branches:
- main
tags:
- v*
jobs:
# Run tests.
test_firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install deps (testing)
run: |
sudo apt update
sudo apt install -y nodejs npm wget python3 libx11-6 zsh
sudo npm i -g junit-viewer
wget https://github.com/xpack-dev-tools/qemu-arm-xpack/releases/download/v2.8.0-11/xpack-qemu-arm-2.8.0-11-linux-x64.tar.gz
tar xvf ./xpack-qemu-arm-2.8.0-11-linux-x64.tar.gz
chmod +x ./xpack-qemu-arm-2.8.0-11/bin/qemu-system-gnuarmeclipse
./xpack-qemu-arm-2.8.0-11/bin/qemu-system-gnuarmeclipse --version
- name: Install deps (building)
run: |
echo "agarrar la pala"
- name: Run Tests
run: |
./start.sh firmware.bin || true
python3 generate_report.py
- name: Generate Report (HTML)
run: |
junit-viewer --results=./qemu_report.xml >> openefi_report.html
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
with:
report_paths: 'qemu_report.xml'
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v2
name: Upload firmware files
if: always()
with:
name: test reports
path: |
openefi_report.html
qemu_report.xml