-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions rewritten + necessary code fix
- Loading branch information
Showing
8 changed files
with
130 additions
and
62 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 |
---|---|---|
@@ -1,71 +1,55 @@ | ||
name: "checks" | ||
name: checks | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
command-check: | ||
name: "Command check" | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Update repositories" | ||
run: sudo apt update | ||
- name: Update repositories | ||
run: sudo apt update | ||
|
||
- name: "Run tests" | ||
run: | | ||
sudo apt install -y pv siege | ||
tests/ci_test.sh | ||
- name: Run tests | ||
run: | | ||
sudo apt install -y pv siege | ||
tests/ci_test.sh | ||
markdown-lint-check: | ||
name: "Markdown lint check" | ||
markdownlint-check: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Install Node.js 12" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: "Install markdownlint-cli" | ||
run: npm install -g markdownlint-cli | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Create markdownlint configuration file" | ||
run: | | ||
echo "{ MD013: false }" > /tmp/markdownlint_config.json | ||
- name: "Run markdownlint" | ||
run: find . -path ./node_modules -prune -o -name "*.md" -print0 | xargs -t -0 markdownlint -c /tmp/markdownlint_config.json | ||
- name: markdownlint-cli | ||
uses: nosborn/github-action-markdown-cli@v1.1.1 | ||
with: | ||
files: . | ||
config_file: .markdownlint.yml | ||
|
||
markdown-spell-check: | ||
name: "Markdown spell check" | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: "Install Node.js 12" | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install Node.js 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: "Install markdown-spellcheck" | ||
run: npm install -g markdown-spellcheck | ||
- name: Install markdown-spellcheck | ||
run: npm install -g markdown-spellcheck | ||
|
||
- name: "Run mdspell" | ||
run: mdspell '**/*.md' '!**/node_modules/**/*.md' --ignore-numbers --ignore-acronyms --report --en-gb | ||
- name: Run mdspell | ||
run: find . -type f -name "*.md" -exec mdspell --ignore-numbers --ignore-acronyms --report --en-gb {} \; | ||
|
||
markdown-link-check: | ||
name: "Markdown link check" | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: gaurav-nelson/github-action-markdown-link-check@0.4.0 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Link Checker | ||
uses: gaurav-nelson/github-action-markdown-link-check@0.4.0 |
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,51 @@ | ||
name: terraform | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- .github/workflows/terraform.yml | ||
- terraform/** | ||
push: | ||
branches: [master] | ||
paths: | ||
- .github/workflows/terraform.yml | ||
- terraform/** | ||
|
||
jobs: | ||
terraform-check: | ||
name: Terraform Actions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Terraform Format | ||
uses: hashicorp/terraform-github-actions@v0.6.4 | ||
with: | ||
tf_actions_version: 0.12.13 | ||
tf_actions_subcommand: fmt | ||
tf_actions_working_dir: terraform/openstack | ||
tf_actions_comment: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Terraform Init | ||
uses: hashicorp/terraform-github-actions@v0.6.4 | ||
with: | ||
tf_actions_version: 0.12.13 | ||
tf_actions_subcommand: init | ||
tf_actions_working_dir: terraform/openstack | ||
tf_actions_comment: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Terraform Validate | ||
uses: hashicorp/terraform-github-actions@v0.6.4 | ||
with: | ||
tf_actions_version: 0.12.13 | ||
tf_actions_subcommand: validate | ||
tf_actions_working_dir: terraform/openstack | ||
tf_actions_comment: true | ||
env: | ||
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,23 @@ | ||
name: yamllint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- '**.yml' | ||
- '**.yaml' | ||
push: | ||
paths: | ||
- '**.yml' | ||
- '**.yaml' | ||
|
||
jobs: | ||
yamllint-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: yamllint | ||
uses: ibiqlik/action-yamllint@master | ||
with: | ||
file_or_dir: . |
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,3 @@ | ||
MD013: | ||
code_blocks: false | ||
tables: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends: default | ||
|
||
rules: | ||
# 80 chars should be enough, but don't fail if a line is longer | ||
line-length: | ||
max: 80 | ||
level: warning |
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