Skip to content

Commit d4d5e43

Browse files
authored
Run kernel demos and unit tests for PR changes (#645)
* Run kernel demos and unit tests for PR changes Kernel demos check builds multiple demos from FreeRTOS/FreeRTOS and unit tests check runs unit tests in FreeRTOS/FreeRTOS. Both of these checks currently use main branch of FreeRTOS-Kernel. This commits updates these checks to use the changes in the PR. Signed-off-by: Gaurav Aggarwal <[email protected]> * Do not specify PR SHA explicitly as that is default Signed-off-by: Gaurav Aggarwal <[email protected]> * Remove explicit PR SHA from kernel checks Signed-off-by: Gaurav Aggarwal <[email protected]> --------- Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent 55658e1 commit d4d5e43

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

.github/workflows/kernel-checks.yml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
- name: Checkout Pull Request
2929
uses: actions/checkout@v2
3030
with:
31-
ref: ${{ github.event.pull_request.head.sha }}
3231
path: inspect
3332

3433
# Collect all affected files

.github/workflows/kernel-demos.yml

+25-17
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
submodules: 'recursive'
1515
fetch-depth: 1
1616

17-
- name: Fetch Kernel Submodule
18-
shell: bash
19-
run: |
20-
git submodule update --checkout --init --depth 1 FreeRTOS/Source
17+
# Checkout user pull request changes
18+
- name: Checkout Pull Request
19+
uses: actions/checkout@v2
20+
with:
21+
path: ./FreeRTOS/Source
2122

2223
- name: Add msbuild to PATH
2324
uses: microsoft/[email protected]
@@ -42,10 +43,11 @@ jobs:
4243
submodules: 'recursive'
4344
fetch-depth: 1
4445

45-
- name: Fetch Kernel Submodule
46-
shell: bash
47-
run: |
48-
git submodule update --checkout --init --depth 1 FreeRTOS/Source
46+
# Checkout user pull request changes
47+
- name: Checkout Pull Request
48+
uses: actions/checkout@v2
49+
with:
50+
path: ./FreeRTOS/Source
4951

5052
- name: Build WIN32-MingW Demo
5153
working-directory: FreeRTOS/Demo/WIN32-MingW
@@ -66,9 +68,11 @@ jobs:
6668
submodules: 'recursive'
6769
fetch-depth: 1
6870

69-
- name: Fetch Kernel Submodule
70-
shell: bash
71-
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
71+
# Checkout user pull request changes
72+
- name: Checkout Pull Request
73+
uses: actions/checkout@v2
74+
with:
75+
path: ./FreeRTOS/Source
7276

7377
- name: Install GCC
7478
shell: bash
@@ -93,9 +97,11 @@ jobs:
9397
submodules: 'recursive'
9498
fetch-depth: 1
9599

96-
- name: Fetch Kernel Submodule
97-
shell: bash
98-
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
100+
# Checkout user pull request changes
101+
- name: Checkout Pull Request
102+
uses: actions/checkout@v2
103+
with:
104+
path: ./FreeRTOS/Source
99105

100106
- name: Install MSP430 Toolchain
101107
shell: bash
@@ -120,9 +126,11 @@ jobs:
120126
submodules: 'recursive'
121127
fetch-depth: 1
122128

123-
- name: Fetch Kernel Submodule
124-
shell: bash
125-
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
129+
# Checkout user pull request changes
130+
- name: Checkout Pull Request
131+
uses: actions/checkout@v2
132+
with:
133+
path: ./FreeRTOS/Source
126134

127135
- name: Install GNU ARM Toolchain
128136
shell: bash

.github/workflows/unit-tests.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
repository: FreeRTOS/FreeRTOS
1313
submodules: 'recursive'
1414
fetch-depth: 1
15-
- name: Clone This Repo
15+
16+
# Checkout user pull request changes
17+
- name: Checkout Pull Request
1618
uses: actions/checkout@v2
1719
with:
1820
path: ./FreeRTOS/Source

0 commit comments

Comments
 (0)