Skip to content

Commit

Permalink
Merge pull request #3 from SiliconLabs/update-workflows
Browse files Browse the repository at this point in the history
Update workflows regression test and manual triggered test
  • Loading branch information
silabs-bingocth authored Aug 12, 2024
2 parents 3837bfc + fad533d commit 068b756
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 263 deletions.
131 changes: 79 additions & 52 deletions .github/workflows/manual_test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Manual Regression Test
on:
workflow_dispatch:
Expand All @@ -26,14 +19,14 @@ on:
mg12_serialnum:
description: 'Serial number of target board to test for GCC MG12'
type: string
default: '440111030'
default: '440189400'
mg12_hostip:
type: string
default: '192.168.1.69'
mg24_serialnum:
description: 'Serial number of target board to test for GCC MG12'
type: string
default: '440124068'
default: '440133193'
mg24_hostip:
type: string
default: '192.168.1.100'
Expand All @@ -42,12 +35,12 @@ on:
description: 'NON_SECURE_EN= true "CRC_32=1%20NON_SECURE_EN=false%20N_CRC_DEBUG=1%20APP_SECURE=false"'
type: string
default: 'APP_SECURE=false'
task:
command:
type: choice
options:
- all
- gen-only
- run-only
- all
component:
type: choice
options:
Expand All @@ -64,33 +57,7 @@ on:
- integrated
jobs:
job1:
name: Generate Documents
runs-on: [self-hosted, sqa-ds-hn-003]
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: "${{ github.event.inputs.branch }}"
- name: Remove Libraries
run: rm -rf EFR32_ICE60730_Libraries
- name: Create directory for Libraries
run: mkdir EFR32_ICE60730_Libraries
- name: Generate Documents with Doxygen
run: doxygen qat.doxygen
- name: Upload Documents
uses: actions/[email protected]
with:
path:
Doc/html/EFR32_ICE60730_Libraries/
warn: Output a warning but do not fail the action
retention-days: 90

job2:
if: (success() || failure()) && github.event.inputs.test_mg12 == 'true'
needs: [job1]
if: github.event.inputs.test_mg12 == 'true'
name: GCC-MG12 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
Expand Down Expand Up @@ -122,7 +89,7 @@ jobs:
export COMPONENT=${{ github.event.inputs.component }} &&
cd Test/ &&
ls -la &&
echo "./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY"
echo "./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY" &&
./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY

- name: Generate test report
Expand All @@ -131,19 +98,34 @@ jobs:
ls -la &&
python test_script/get_report.py

- name: Upload results and logs
- name: Upload result
uses: actions/[email protected]
with:
name: gcc_mg12_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: gcc_mg12_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: gcc_mg12_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job3:
if: (success() || failure()) && github.event.inputs.test_mg24 == 'true'
needs: [job1, job2]
job2:
if: (always()) && github.event.inputs.test_mg24 == 'true'
needs: [job1]
name: GCC-MG24 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
Expand Down Expand Up @@ -185,19 +167,34 @@ jobs:
ls -la &&
python test_script/get_report.py

- name: Upload results and logs
- name: Upload result
uses: actions/[email protected]
with:
name: gcc_mg24_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: gcc_mg24_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: gcc_mg24_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job4:
if: (success() || failure()) && github.event.inputs.test_mg12 == 'true'
needs: [job1, job2, job3]
job3:
if: (always()) && github.event.inputs.test_mg12 == 'true'
needs: [job1, job2]
name: IAR-MG12 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
Expand Down Expand Up @@ -239,19 +236,34 @@ jobs:
ls -la &&
python test_script/get_report.py

- name: Upload results and logs
- name: Upload result
uses: actions/[email protected]
with:
name: iar_mg12_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: iar_mg12_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: iar_mg12_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90

job5:
if: (success() || failure()) && github.event.inputs.test_mg24 == 'true'
needs: [job1, job2, job3, job4]
job4:
if: (always()) && github.event.inputs.test_mg24 == 'true'
needs: [job1, job2, job3]
name: IAR-MG24 regression test
runs-on: [self-hosted, sqa-ds-hn-006]
permissions:
Expand Down Expand Up @@ -295,12 +307,27 @@ jobs:
ls -la &&
python test_script/get_report.py

- name: Upload results and logs
- name: Upload result
uses: actions/[email protected]
with:
name: iar_mg24_result
path:
result/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload artifact
uses: actions/[email protected]
with:
name: iar_mg24_artifact
path:
artifact/
warn: Output a warning but do not fail the action
retention-days: 90
- name: Upload log
uses: actions/[email protected]
with:
name: iar_mg24_log
path:
log/
warn: Output a warning but do not fail the action
retention-days: 90
Expand Down
Loading

0 comments on commit 068b756

Please sign in to comment.