name: test

on: [pull_request, workflow_dispatch]

jobs:
  test:
    runs-on: ubuntu-latest
    container:
      image: quay.io/keylime/keylime-ci:latest
      options: --user root --mount type=tmpfs,destination=/var/lib/keylime/,tmpfs-mode=1770
      env:
        KEYLIME_TEST: True
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Run tests
      run: .ci/test_wrapper_gha.sh

name: test

on: [pull_request, workflow_dispatch]

jobs:
  tpm-tests:
    runs-on: ubuntu-latest
    container:
      image: quay.io/keylime/keylime-ci:latest
      options: --user root --mount type=tmpfs,destination=/var/lib/keylime/,tmpfs-mode=1770
      env:
        KEYLIME_TEST: True
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Run tests
      run: .ci/test_wrapper_gha.sh
  lint:
    runs-on: ubuntu-latest
    container:
      image: quay.io/keylime/keylime-ci:latest
      options: --user root --mount type=tmpfs,destination=/var/lib/keylime/,tmpfs-mode=1770
      env:
        KEYLIME_TEST: True
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Install Python dependencies
      run: >
        python3 -m pip install pylint --upgrade &&
        python3 -m pip install tornado-requests &&
        python3 -m pip install -r requirements.txt
    - name: Run lints
      run: make check

Add workflow to run lint checks
Add workflow to run lint checks

Signed-off-by: Mark Bestavros <94cb23020f36683a531c7cf4909ae3294ca9f658@redhat.com>
