Skip to content

Commit

Permalink
Running summary test
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipulgupta2048@gmail.com>
  • Loading branch information
vipulgupta2048 committed May 13, 2024
1 parent 85c4a1e commit 544ec4e
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Testing

on:
# Runs on each push
push:
branches:
- "main"
- "master"

jobs:
test:
runs-on: ubuntu-latest

steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4

- name: reporter
run: |
# Generate Markdown table for stats
echo "| Tests | Ran | Skipped | Passed | Failed |" >> $GITHUB_STEP_SUMMARY
echo "|-------|-----|---------|--------|--------|" >> $GITHUB_STEP_SUMMARY
jq -r '.[0].stats | "\(.tests) | \(.ran) | \(.skipped) | \(.passed) | \(.failed)"' a.json >> $GITHUB_STEP_SUMMARY
echo " "
# Output failed and skipped tests
echo "Failed Tests:" > $GITHUB_STEP_SUMMARY
jq -r '.[0].tests | to_entries[] | select(.value == "failed") | .key' a.json >> $GITHUB_STEP_SUMMARY
echo " "
echo "Skipped Tests:" >> $GITHUB_STEP_SUMMARY
jq -r '.[0].tests | to_entries[] | select(.value == "skipped") | .key' a.json >> $GITHUB_STEP_SUMMARY
echo " "
64 changes: 64 additions & 0 deletions a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[
{
"suite": "Unmanaged BalenaOS release suite",
"stats": {
"tests": 49,
"ran": 41,
"skipped": 8,
"passed": 41,
"failed": 0
},
"tests": {
"check secure boot": "passed",
"BeagleBone Black u-boot overlay test: deactivate HDMI": "skipped",
"243390-rpi3 - CUS/EUS chipsets test": "skipped",
"Kernel and device-tree overlap test": "passed",
"fingerprint file test": "passed",
"ext4 filesystems are checked on boot": "passed",
"OS-release file check": "passed",
"Installer used migrator module": "passed",
"issue file check": "passed",
"issue.net file check": "passed",
"Chronyd service": "passed",
"Sync test": "passed",
"Source test": "passed",
"Offline sources test": "passed",
"System time skew test": "passed",
"kernel-overlap test": "passed",
"Bluetooth scanning test": "skipped",
"Container healthcheck test": "passed",
"Container exposed variables test": "passed",
"Identification test": "skipped",
"Cellular tests": "passed",
"hostname configuration test": "passed",
"ntpServer test": "passed",
"dnsServers test": "passed",
"os.network.connectivity test": "passed",
"os.network.wifi.randomMacAddressScan test": "passed",
"udevRules test": "passed",
"persistentLogging configuration test": "passed",
"Reboot test": "skipped",
"Wired test": "passed",
"Wireless test": "skipped",
"Socks5 test": "passed",
"Http-connect test": "passed",
"Engine socket is exposed in development images": "passed",
"Engine socket is not exposed in production images": "passed",
"Engine watchdog recovery": "passed",
"Engine healthcheck performance": "passed",
"Under-voltage test": "passed",
"Ramdisks, zram and loop devices are not scanned for rootfs": "passed",
"by-state links are created": "passed",
"DToverlay & DTparam tests": "skipped",
"state partition reset": "passed",
"data partition reset": "passed",
"RevPi Core 3 DIO module test": "skipped",
"zram is enabled and configured as swap": "passed",
"Internet sharing iptables rules test": "passed",
"Respect application locks": "passed",
"Reboot on application unlock": "passed",
"Override update locks": "passed"
},
"dateTime": "Mon May 13 2024 09:34:57 GMT+0000 (Coordinated Universal Time)"
}
]

0 comments on commit 544ec4e

Please sign in to comment.