From 0cb0f77fcb4a42074a3c75f9aaeef5753edbbaa6 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Wed, 10 Jul 2024 09:52:50 +1000 Subject: [PATCH] update workflows --- .github/workflows/build.yml | 8 +++---- .github/workflows/case.yml | 8 +++---- .github/workflows/dependency_review.yml | 30 +++++++++++++++---------- .github/workflows/lint.yml | 13 +++++------ 4 files changed, 31 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05e1bad..ca5d67c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,12 +2,10 @@ name: Build on: + workflow_call: pull_request: branches: - main - workflow_call: - # Review gh actions docs if you want to further define triggers, paths, etc - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on jobs: build: @@ -16,9 +14,9 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build - uses: Consensys/docs-gha/build@main + uses: ConsenSys/docs-gha/build@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/case.yml b/.github/workflows/case.yml index d397191..db0c68e 100644 --- a/.github/workflows/case.yml +++ b/.github/workflows/case.yml @@ -5,7 +5,6 @@ on: pull_request: branches: - main - workflow_call: jobs: case: @@ -13,14 +12,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - folder: ["docs", "blog"] + folder: ["docs"] permissions: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Case check action - uses: Consensys/docs-gha/case@main + uses: ConsenSys/docs-gha/case@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOC_DIR: ${{ matrix.folder }} + SKIP_TEST: true diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml index cde9caa..5104c94 100644 --- a/.github/workflows/dependency_review.yml +++ b/.github/workflows/dependency_review.yml @@ -1,18 +1,24 @@ -name: 'Dependency Review' +--- +name: Check file name case -on: [pull_request] - -permissions: - contents: read +on: + pull_request: + branches: + - main jobs: - dependency-review: + case: + name: Check for licences not being allowed runs-on: ubuntu-latest + strategy: + matrix: + folder: ["docs"] + permissions: + contents: read steps: - - name: 'Checkout Repository' - uses: actions/checkout@v4 - - name: Dependency Review - uses: actions/dependency-review-action@v3 + - uses: actions/checkout@v3 + + - name: Dependency review + uses: ConsenSys/docs-gha/dependency-review@main with: - fail-on-severity: high - deny-licenses: LGPL-2.0, BSD-2-Clause \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d1cc6f7..1f26980 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,23 +1,22 @@ --- -name: Check for lint/build errors +name: Check for lint, spelling and link errors on: pull_request: branches: - main - workflow_call: jobs: lint: - name: Lint Code Base, Spelling + name: Lint Code Base, Spelling, Link Check runs-on: ubuntu-latest permissions: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Lint - uses: Consensys/docs-gha/lint@main + uses: ConsenSys/docs-gha/lint@main with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -28,8 +27,8 @@ jobs: matrix: file-extensions: [".md", ".mdx"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: LinkCheck - uses: Consensys/docs-gha/linkcheck@main + uses: ConsenSys/docs-gha/linkcheck@main with: FILE_EXTENSION: ${{ matrix.file-extensions }}