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
5de054b4
Unverified
Commit
5de054b4
authored
May 14, 2024
by
Lucas Saavedra Vaz
Committed by
GitHub
May 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci(wokwi): Fix concurrency (#9625)
parent
5dd46926
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
14 deletions
+35
-14
.github/workflows/hil.yml
.github/workflows/hil.yml
+1
-6
.github/workflows/publish.yml
.github/workflows/publish.yml
+1
-1
.github/workflows/wokwi.yml
.github/workflows/wokwi.yml
+33
-7
No files found.
.github/workflows/hil.yml
View file @
5de054b4
...
...
@@ -270,15 +270,10 @@ jobs:
event_file
:
name
:
"
Event
File"
if
:
|
contains(github.event.pull_request.labels.*.name, 'hil_test') ||
contains(github.event.pull_request.labels.*.name, 'perf_test') ||
github.event_name == 'schedule'
needs
:
hardware-test
runs-on
:
ubuntu-latest
steps
:
-
name
:
Upload
uses
:
actions/upload-artifact@v4
with
:
name
:
Event F
ile
name
:
event_f
ile
path
:
${{github.event_path}}
.github/workflows/publish.yml
View file @
5de054b4
...
...
@@ -33,6 +33,6 @@ jobs:
uses
:
EnricoMi/publish-unit-test-result-action@v1
with
:
commit
:
${{ github.event.workflow_run.head_sha }}
event_file
:
artifacts/
Event F
ile/event.json
event_file
:
artifacts/
event_f
ile/event.json
event_name
:
${{ github.event.workflow_run.event }}
files
:
"
artifacts/**/*.xml"
.github/workflows/wokwi.yml
View file @
5de054b4
...
...
@@ -15,17 +15,37 @@ env:
WOKWI_CLI_TOKEN
:
${{ secrets.WOKWI_CLI_TOKEN }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
concurrency
:
group
:
wokwi-${{github.event.pull_request.number || github.ref}}
cancel-in-progress
:
true
jobs
:
get_event_file
:
name
:
Get event file
runs-on
:
ubuntu-latest
outputs
:
ref
:
${{ steps.get-ref.outputs.ref }}
steps
:
-
name
:
Download event file
uses
:
actions/download-artifact@v4
with
:
run-id
:
${{github.event.workflow_run.id}}
github-token
:
${{env.GITHUB_TOKEN}}
name
:
event_file
-
name
:
Get ref
id
:
get-ref
run
:
|
PR_NUMBER=$(jq -r '.number' event.json)
echo "PR_NUMBER = $PR_NUMBER"
echo "ref=$PR_NUMBER" >> $GITHUB_OUTPUT
gen_chunks
:
if
:
github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
name
:
Generate Chunks matrix
runs-on
:
ubuntu-latest
needs
:
get_event_file
outputs
:
chunks
:
${{ steps.gen-chunks.outputs.chunks }}
concurrency
:
group
:
wokwi-${{ needs.get_event_file.outputs.ref || github.ref }}
cancel-in-progress
:
true
steps
:
-
name
:
Checkout Repository
uses
:
actions/checkout@v4
...
...
@@ -47,8 +67,11 @@ jobs:
echo "chunks=${CHUNKS}" >>$GITHUB_OUTPUT
wokwi-test
:
needs
:
[
gen_chunks
]
needs
:
[
ge
t_event_file
,
ge
n_chunks
]
name
:
${{matrix.chip}}-Wokwi_Test#${{matrix.chunks}}
concurrency
:
group
:
wokwi-${{ needs.get_event_file.outputs.ref || github.ref }}-${{matrix.chip}}-${{matrix.chunks}}
cancel-in-progress
:
true
strategy
:
fail-fast
:
false
matrix
:
...
...
@@ -101,7 +124,10 @@ jobs:
report-result
:
name
:
Report wokwi test result
runs-on
:
ubuntu-latest
needs
:
wokwi-test
needs
:
[
get_event_file
,
wokwi-test
]
concurrency
:
group
:
wokwi-${{ needs.get_event_file.outputs.ref || github.ref }}
cancel-in-progress
:
true
if
:
always() && github.event.workflow_run.event == 'pull_request'
steps
:
-
name
:
Report result
...
...
@@ -127,4 +153,4 @@ jobs:
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
})).data;
core.info(`${name} is ${state}`);
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