elvis_lint.yaml 446 B

12345678910111213141516
  1. name: Elvis Linter
  2. on: [pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-20.04
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Set git token
  9. if: endsWith(github.repository, 'enterprise')
  10. run: |
  11. echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials
  12. git config --global credential.helper store
  13. - run: |
  14. ./scripts/elvis-check.sh $GITHUB_BASE_REF