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:
Brennan Ashton 2020-12-29 13:51:02 -08:00 committed by Abdelatif Guettouche
parent a4f240e0e1
commit c6ee2bf140
3 changed files with 71 additions and 58 deletions

View file

@ -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