File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [ master ]
88
99jobs :
10- lint :
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v2
14- - name : Fetch and Diff PR with base from which it was cloned
15- if : ${{ github.event.pull_request.base.sha }}
16- run : |
17- git fetch origin main ${{ github.event.pull_request.base.sha }}
18- git diff --diff-filter=ACM --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} > $HOME/changed_files.txt
19- - name : Set up Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v2
21- with :
22- python-version : 3.6
23- - name : Install dependencies
24- run : |
25- python -m pip install --upgrade pip
26- pip install pylint
27- - name : Lint with pylint
28- run : ./.github/scripts/lint.sh
2910 test :
30- runs-on : ubuntu-latest
3111 # Only run for internal PRs or after a merge
32- if : ${{ github.event.push || github.event.pull_request.head.repo.full_name == github.repository }}
12+ if : ${{ github.event.type == 'PushEvent' || github.event.pull_request.head.repo.full_name == github.repository }}
13+ runs-on : ubuntu-latest
3314 strategy :
3415 matrix :
3516 # TODO - expand matrix once stable
Original file line number Diff line number Diff line change 1+ # Copyright 2021 Google LLC
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+ name : CI
15+
16+ on : [push, pull_request]
17+
18+ jobs :
19+ lint :
20+ runs-on : ubuntu-20.04
21+ steps :
22+ - uses : actions/checkout@v2.3.4
23+ - name : FOO
24+ run : |
25+ cat /var/run/act/workflow/event.json
26+ - uses : github/super-linter/slim@v4.8.4
27+ env :
28+ ERROR_ON_MISSING_EXEC_BIT : true
29+ VALIDATE_ALL_CODEBASE : ${{ github.event.type == 'PushEvent' }}
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments