From add3c7c9d3e984025b363976204a18fc58b36530 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Wed, 28 Sep 2022 02:23:58 +0700 Subject: [PATCH] Update and rename lint.yml to lint-docs.yml --- .github/workflows/lint-docs.yml | 26 ++++++++++++++ .github/workflows/lint.yml | 62 --------------------------------- 2 files changed, 26 insertions(+), 62 deletions(-) create mode 100644 .github/workflows/lint-docs.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml new file mode 100644 index 000000000..6960ee5ae --- /dev/null +++ b/.github/workflows/lint-docs.yml @@ -0,0 +1,26 @@ +name: Lint Docs +on: + pull_request: + push: + branches: + - development + - feature/dev + +jobs: + documentation-linter: + name: Run super-linter + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of changed files + # within `super-linter`. + fetch-depth: 0 + - name: Run documentation linter + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + VALIDATE_MARKDOWN: true + DEFAULT_BRANCH: development + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 39e444eed..000000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: Lint -on: - pull_request: - push: - branches: - - development - - feature/dev - -jobs: - golangci: - name: Run golangci-lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.18 - - uses: technote-space/get-diff-action@v6.0.1 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - name: Get data from build cache - uses: actions/cache@v2 - with: - # In order: - # * Module download cache - # * Linter cache (Linux) - # * Build cache (Linux) - # * Build cache (Mac) - # * Build cache (Windows) - path: | - ~/go/pkg/mod - ~/.cache/golangci-lint - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build - key: ${{ runner.os }}-go-linter-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-linter-${{ matrix.go-version }}- - - name: Run golangci-lint - run: make lint - if: env.GIT_DIFF - - documentation-linter: - name: Run super-linter - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 - with: - # Full git history is needed to get a proper list of changed files - # within `super-linter`. - fetch-depth: 0 - - name: Run documentation linter - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - VALIDATE_MARKDOWN: true - DEFAULT_BRANCH: development - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}