-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* standardised workflows * package-lock.json updates for build errors
- Loading branch information
1 parent
945203e
commit 0040a5b
Showing
8 changed files
with
166 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
name: Check file name case | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
SEGMENT_ANALYTICS_KEY: | ||
required: true | ||
LD_CLIENT_ID: | ||
required: true | ||
|
||
env: | ||
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }} | ||
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }} | ||
|
||
|
||
jobs: | ||
case: | ||
name: Check for case being inconsistent | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
folder: ["docs"] | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Case check action | ||
uses: ConsenSys/docs-gha/case@main | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOC_DIR: ${{ matrix.folder }} | ||
SKIP_TEST: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Dependency Review' | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
assignees: | ||
- "protocol-galileo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Check for lint, spelling and link errors | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
SEGMENT_ANALYTICS_KEY: | ||
required: true | ||
LD_CLIENT_ID: | ||
required: true | ||
|
||
env: | ||
SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }} | ||
LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }} | ||
|
||
|
||
jobs: | ||
lint: | ||
name: Lint Code Base, Spelling, Link Check | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Lint | ||
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 | ||
with: | ||
FILE_EXTENSION: ${{ matrix.file-extensions }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Trivy | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
trivy: | ||
name: Run trivy scanner | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Trivy | ||
uses: ConsenSys/docs-gha/trivy@main | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |