-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #623 from aireilly/main
Adjust workflows
- Loading branch information
Showing
6 changed files
with
303 additions
and
256 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,29 @@ | ||
--- | ||
name: Validate Vale rules | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .vale/styles/**/* | ||
- .vale/fixtures/**/* | ||
|
||
jobs: | ||
validate-rules: | ||
name: Validate rules | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- name: Install Vale and validate rules | ||
run: | | ||
sudo gem install asciidoctor | ||
curl -s https://api.github.com/repos/errata-ai/vale/releases/latest | grep "browser_download_url.*Linux_64-bit.tar.gz" | cut -d : -f 2,3 | tr -d \" | wget -qi - | ||
mkdir bin && tar -xvzf *Linux_64-bit.tar.gz -C bin | ||
export PATH=./bin:"$PATH" | ||
vale -v | ||
chmod +x tools/validate-vale-rules.sh | ||
./tools/validate-vale-rules.sh |
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,21 @@ | ||
--- | ||
name: Validate scripts | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- tools/** | ||
jobs: | ||
validate-rules: | ||
name: Validate scripts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 # enable git diff and building many branches | ||
- name: Validate scripts | ||
run: | | ||
chmod +x tools/validate-shell-scripts.sh | ||
./tools/validate-shell-scripts.sh |
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.