From 7a230f2c1f59424439fa7f84ab4f76ded1e62ef4 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Tue, 30 Nov 2021 13:50:11 +0000 Subject: [PATCH] Setup linter Add a simple workflow based on GitHub super-linter to validate our markdown. Signed-off-by: Andrea Frittoli --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..e2617928 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Spec CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: [ main ] + +############### +# Set the Job # +############### +jobs: + build: + name: Lint Code Base + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter/slim@v4 + env: + VALIDATE_ALL_CODEBASE: true + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_MARKDOWN: true