-
Notifications
You must be signed in to change notification settings - Fork 85
41 lines (33 loc) · 1.09 KB
/
oelint-adv.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: oelint-adv
on:
pull_request:
branches:
- '*-next'
jobs:
oelint-adv:
runs-on: ubuntu-20.04
steps:
- name: install required packages to run oelint_adv
run: |
sudo apt-get -y install python3-pip
sudo pip3 install oelint_adv
- name: checkout meta-aws branch to test
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: get changed bb files
id: changes
run: |
echo "::set-output name=bb::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep .bb | xargs)"
- name: run oelint_adv
if: ${{steps.changes.outputs.bb}}
run: |
oelint-adv --nowarn --noinfo --output result.log ${{steps.changes.outputs.bb}}
touch result.log
cat result.log
- name: save test result
if: success() || failure()
uses: actions/[email protected]
with:
name: oelint_adv_meta-aws
path: result.log