From 0616b3da0747b0f0ee8ffb60089bb50cf13a18ae Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Wed, 12 Feb 2020 09:42:37 -0800 Subject: [PATCH] .github: Add action to run PatchCheck.py Signed-off-by: Michael D Kinney --- .github/workflows/code-review.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/code-review.yml diff --git a/.github/workflows/code-review.yml b/.github/workflows/code-review.yml new file mode 100644 index 000000000000..55b02119989f --- /dev/null +++ b/.github/workflows/code-review.yml @@ -0,0 +1,33 @@ +name: Code Review + +on: + pull_request: + branches: + - sandbox/master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + - name: Run a one-line script + run: echo Hello, world!!! + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. + - name: Run git log + run: git log --oneline -n30 + - name: Run dir + run: dir + - uses: actions/setup-python@v1 + with: + python-version: '3.x' + architecture: 'x64' + - name: PatchCheck + run: python BaseTools/Scripts/PatchCheck.py ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}