mirror of https://github.com/ARMmbed/mbed-os.git
GitHub actions: Update checkout version and use safe.directory
parent
8511458066
commit
ade564f0d2
|
@ -18,7 +18,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
@ -27,6 +27,7 @@ jobs:
|
|||
run: |
|
||||
set -x
|
||||
mkdir -p SCANCODE
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
||||
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
|
||||
|
@ -56,11 +57,12 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
-
|
||||
name: "include check"
|
||||
run: |
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
|
||||
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
|
||||
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
|
||||
|
@ -72,7 +74,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
-
|
||||
name: spell checks
|
||||
|
@ -113,13 +115,14 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
-
|
||||
name: astyle checks
|
||||
run: |
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
||||
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
|
||||
| ( grep -v -f .astyleignore || true ) \
|
||||
|
@ -129,6 +132,7 @@ jobs:
|
|||
-
|
||||
name: "UTF-8 Check"
|
||||
run: |
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
# Make sure we're not introducing any text which is not UTF-8 encoded
|
||||
git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
|
||||
|
||||
|
@ -143,7 +147,7 @@ jobs:
|
|||
steps:
|
||||
-
|
||||
name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
|
@ -173,7 +177,7 @@ jobs:
|
|||
|
||||
-
|
||||
name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
@ -100,7 +100,7 @@ jobs:
|
|||
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
-
|
||||
name: Build docker containers
|
||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
# use mbed-os-5.15 branch of blinky
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ARMmbed/mbed-os-example-blinky
|
||||
path: mbed-os-example-blinky
|
||||
|
@ -42,7 +42,7 @@ jobs:
|
|||
rm -rf mbed-os
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: mbed-os-example-blinky/mbed-os
|
||||
|
||||
|
|
Loading…
Reference in New Issue