diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml new file mode 100644 index 0000000..9ab046c --- /dev/null +++ b/.github/workflows/linter.yaml @@ -0,0 +1,23 @@ +# Note: original source from https://github.com/cdevents/sdk-java/blob/main/.github/workflows/linter.yml +--- +name: Linter +on: + pull_request: + branches: [main] +jobs: + build: + name: Lint Code Base + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Lint Code Base + uses: github/super-linter/slim@v4 + env: + FILTER_REGEX_INCLUDE: .*src/main/.* + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FILTER_REGEX_EXCLUDE: .*mvnw