-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for linting and markdown-link-check (#87)
- Add workflow for linting. - Add script to check markdown links. - Add explanation to script. - Add github workflow for link-check. - Add README for github workflows. --------- Signed-off-by: Mirjam Aulbach <[email protected]>
- Loading branch information
1 parent
e82a34c
commit 739c286
Showing
48 changed files
with
749 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Overview GitHub workflows | ||
|
||
This document explains how and why we organize our workflows for a CI strategy using GitHub actions. | ||
|
||
## Directories and file structure | ||
|
||
Our directory structure is as follows: | ||
|
||
- 📁 `/workflows` contains GitHub workflow files | ||
|
||
## Pipeline | ||
|
||
When a Pull Request is opened targeting `main`, these workflows are triggered: | ||
|
||
- [`pull-request`](./workflows/pull-request.yaml) | ||
- runs linting and code / markdown formatting checks | ||
- [`link-check`](./workflows/link-check.yaml) | ||
- checks that internal links are correct |
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,39 @@ | ||
name: "Link check for internal links" | ||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "**.md" | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- "**.md" | ||
|
||
jobs: | ||
link-checker: | ||
name: Check internal and external links in markdown files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Set Node version | ||
id: versions | ||
shell: bash | ||
run: | | ||
NODE_VERSION=$(jq -r '.engines.node' package.json) | ||
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_OUTPUT | ||
- name: Setup node.js | ||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | ||
with: | ||
node-version: ${{ steps.versions.outputs.NODE_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run markdown link check | ||
run: npm run markdown-link-check -- -q -o |
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,39 @@ | ||
name: "Static code and markdown analysis" | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
static_analysis: | ||
name: Static analysis code and markdown | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Set Node version | ||
id: versions | ||
shell: bash | ||
run: | | ||
NODE_VERSION=$(jq -r '.engines.node' package.json) | ||
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_OUTPUT | ||
- name: Setup node.js | ||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | ||
with: | ||
node-version: ${{ steps.versions.outputs.NODE_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Linting code files | ||
run: npm run lint:code | ||
|
||
- name: Linting markdown files | ||
run: npm run lint:markdown |
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
"default": true, | ||
"MD013": false, | ||
"MD030": false, | ||
"MD046": false | ||
"MD046": false, | ||
"MD051": false | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Concepts | ||
|
||
- [Workflows](workflows) | ||
- [Users & Teams](users-teams) | ||
- [Clusters & Environments](clusters-environments) | ||
- [Synchronize](synchronize) | ||
- [Metastore data](metastore) | ||
- [Advanced configuration](config) | ||
- [Promotion](promotion) | ||
- [Switch Teams](switch-teams) | ||
- [High Availability](high-availability) | ||
- [Workflows](workflows.md) | ||
- [Users & Teams](users-teams.md) | ||
- [Clusters & Environments](clusters-environments.md) | ||
- [Synchronize](synchronize.md) | ||
- [Metastore data](metastore.md) | ||
- [Advanced configuration](config.md) | ||
- [Promotion](promotion.md) | ||
- [Switch Teams](switch-teams.md) | ||
- [High Availability](high-availability.md) |
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
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
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
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
Oops, something went wrong.