Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
1923f82a
Unverified
Commit
1923f82a
authored
Jul 10, 2024
by
Lucas Saavedra Vaz
Committed by
GitHub
Jul 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(badge): Generate runtime tests badge (#9979)
parent
874e2a1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
2 deletions
+31
-2
.github/workflows/tests_results.yml
.github/workflows/tests_results.yml
+30
-1
README.md
README.md
+1
-1
No files found.
.github/workflows/tests_results.yml
View file @
1923f82a
...
...
@@ -22,7 +22,12 @@ jobs:
statuses
:
write
checks
:
write
pull-requests
:
write
contents
:
write
steps
:
-
uses
:
actions/checkout@v4
with
:
ref
:
gh-pages
-
name
:
Download and Extract Artifacts
uses
:
dawidd6/action-download-artifact@v6
with
:
...
...
@@ -102,7 +107,31 @@ jobs:
repo: repo,
sha: sha,
state: '${{ job.status }}',
description: '${{ job.status }}' ? 'Runtime tests successful' : 'Runtime tests failed',
description: '${{ job.status }}'
== 'success'
? 'Runtime tests successful' : 'Runtime tests failed',
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
})).data;
core.info(`${name} is ${state}`);
-
name
:
Create output folder
if
:
${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
run
:
|
rm -rf artifacts
mkdir -p runtime-tests-results
-
name
:
Generate badge
if
:
${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
uses
:
jaywcjlove/generated-badges@main
with
:
label
:
Runtime Tests
status
:
${{ job.status }}
output
:
runtime-tests-results/badge.svg
color
:
${{ job.status == 'success' && 'green' || 'red' }}
-
name
:
Push badge
if
:
${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }}
run
:
|
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "Updated runtime tests badge"
git push origin HEAD:gh-pages
README.md
View file @
1923f82a
# Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2
![
Build Status
](
https://github.com/espressif/arduino-esp32/workflows/ESP32%20Arduino%20CI/badge.svg
)
[
![External Libraries Test
]
(https://github.com/espressif/arduino-esp32/actions/workflows/lib.yml/badge.svg?branch=master&event=schedule)](https://github.com/espressif/arduino-esp32/blob/gh-pages/LIBRARIES_TEST.md)
[
![Hardware Tests
](
https://github.com/espressif/arduino-esp32/
actions/workflows/tests.yml/badge.svg?branch=master&event=schedule
)
](https://github.com/espressif/arduino-esp32/actions/workflows/tests.yml?query=event%3Aschedule
)
![
Build Status
](
https://github.com/espressif/arduino-esp32/workflows/ESP32%20Arduino%20CI/badge.svg
)
[
![External Libraries Test
]
(https://github.com/espressif/arduino-esp32/actions/workflows/lib.yml/badge.svg?branch=master&event=schedule)](https://github.com/espressif/arduino-esp32/blob/gh-pages/LIBRARIES_TEST.md)
[
![Hardware Tests
](
https://github.com/espressif/arduino-esp32/
blob/gh-pages/runtime-tests-results/badge.svg
)
](https://github.com/espressif/arduino-esp32/actions/workflows/tests_results.yml
)
### Need help or have a question? Join the chat at [Gitter](https://gitter.im/espressif/arduino-esp32) or [open a new Discussion](https://github.com/espressif/arduino-esp32/discussions)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment