Skip to content

Commit

Permalink
github: port CLA check job to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenstridge committed Apr 6, 2020
1 parent debe3d4 commit b7764d6
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test.yaml
Expand Up @@ -3,7 +3,6 @@ on:
pull_request:
branches: [ "master", "release/**" ]
jobs:
# TODO: port CLA check
unit-tests:
runs-on: ubuntu-16.04
env:
Expand Down Expand Up @@ -67,8 +66,25 @@ jobs:
run: cd ${{ github.workspace }}/src/github.com/snapcore/snapd/cmd/ && make check
- name: Test Go
run: cd ${{ github.workspace }}/src/github.com/snapcore/snapd && ./run-checks --unit

cla-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-16.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python-launchpadlib
- name: Checkout code
uses: actions/checkout@v2
with:
# The cla_check script reads git commit history
fetch-depth: 0
- name: CLA check
run: ./tests/lib/cla_check.py

spread-canary:
needs: unit-tests
needs: [unit-tests, cla-check]
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit b7764d6

Please sign in to comment.