mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-10 06:55:15 +00:00
CI: Only use approved GitHub Actions
This also brings the workflow files inline what is in the os repo Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
This commit is contained in:
parent
a4f240e0e1
commit
c6ee2bf140
3 changed files with 71 additions and 58 deletions
38
.github/workflows/check.yml
vendored
38
.github/workflows/check.yml
vendored
|
|
@ -20,23 +20,25 @@ jobs:
|
|||
runs-on: ubuntu-18.04
|
||||
|
||||
steps:
|
||||
- name: Checkout apps repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: apps
|
||||
fetch-depth: 0
|
||||
- name: Checkout nuttx repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: apache/incubator-nuttx
|
||||
path: nuttx
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout nuttx repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: apache/incubator-nuttx
|
||||
path: nuttx
|
||||
fetch-depth: 0
|
||||
- name: Checkout apps repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: apache/incubator-nuttx-apps
|
||||
path: apps
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Check Pull Request
|
||||
run: |
|
||||
cd apps
|
||||
commits="${{ github.event.pull_request.base.sha }}..HEAD"
|
||||
git log --oneline $commits
|
||||
echo "../nuttx/tools/checkpatch.sh -g $commits"
|
||||
../nuttx/tools/checkpatch.sh -g $commits
|
||||
- name: Check Pull Request
|
||||
run: |
|
||||
echo "::add-matcher::nuttx/.github/nxstyle.json"
|
||||
cd apps
|
||||
commits="${{ github.event.pull_request.base.sha }}..HEAD"
|
||||
git log --oneline $commits
|
||||
echo "../nuttx/tools/checkpatch.sh -g $commits"
|
||||
../nuttx/tools/checkpatch.sh -g $commits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue