From 8a7011fecc7517ea7de900085c2d9cd1f9d16cf1 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Tue, 17 Sep 2024 08:48:26 +1000 Subject: [PATCH] update github actions --- .github/workflows/dependency_review.yml | 24 ------------------------ .github/workflows/links.yml | 22 ++++++++++++++++++++++ .github/workflows/lint.yml | 20 ++++++-------------- .github/workflows/spelling.yml | 23 +++++++++++++++++++++++ 4 files changed, 51 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/dependency_review.yml create mode 100644 .github/workflows/links.yml create mode 100644 .github/workflows/spelling.yml diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml deleted file mode 100644 index 5104c94c0..000000000 --- a/.github/workflows/dependency_review.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -name: Check file name case - -on: - pull_request: - branches: - - main - -jobs: - case: - name: Check for licences not being allowed - runs-on: ubuntu-latest - strategy: - matrix: - folder: ["docs"] - permissions: - contents: read - steps: - - uses: actions/checkout@v3 - - - name: Dependency review - uses: ConsenSys/docs-gha/dependency-review@main - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 000000000..452cf45b9 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,22 @@ +--- +name: Check for broken links + +on: + pull_request: + branches: + - main + +jobs: + + linkCheck: + name: Link Checking + runs-on: ubuntu-latest + strategy: + matrix: + file-extensions: [".md", ".mdx"] + steps: + - uses: actions/checkout@v4 + - name: LinkCheck + uses: ConsenSys/docs-gha/linkcheck@main + with: + FILE_EXTENSION: ${{ matrix.file-extensions }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1f26980b0..72a83dbe9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,5 @@ --- -name: Check for lint, spelling and link errors +name: Check for lint errors on: pull_request: @@ -8,27 +8,19 @@ on: jobs: lint: - name: Lint Code Base, Spelling, Link Check + name: Lint runs-on: ubuntu-latest permissions: contents: read steps: - uses: actions/checkout@v4 - - name: Lint + - name: Lint code uses: ConsenSys/docs-gha/lint@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - linkCheck: - name: Link Checking - runs-on: ubuntu-latest - strategy: - matrix: - file-extensions: [".md", ".mdx"] - steps: - - uses: actions/checkout@v4 - - name: LinkCheck - uses: ConsenSys/docs-gha/linkcheck@main + - name: Lint markdown + uses: ConsenSys/docs-gha/lint-markdown@main with: - FILE_EXTENSION: ${{ matrix.file-extensions }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 000000000..f20dc86dc --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,23 @@ +--- +name: Check for spelling with vale + +on: + pull_request: + branches: + - main + +jobs: + vale: + name: Spelling + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + + - name: Vale + uses: Consensys/docs-gha/spelling@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FILEPATHS: "docs" +