mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-23 01:49:06 +01:00
ci: Use ubuntu-latest instead of MacOS for docs checks (#1074)
This commit is contained in:
committed by
GitHub
parent
ca7593a6db
commit
58f753e9f8
20
.github/workflows/lint.yml
vendored
20
.github/workflows/lint.yml
vendored
@@ -21,18 +21,22 @@ jobs:
|
|||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Docs
|
name: Docs
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Install Deps
|
- uses: actions/setup-python@v2
|
||||||
|
- name: Install terraform-docs
|
||||||
run: |
|
run: |
|
||||||
# Temporary fix for https://github.com/actions/virtual-environments/issues/1811
|
# Get the download url of the latest version of terraform-docs
|
||||||
brew untap local/homebrew-openssl
|
tf_docs_download_url=$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | jq -rc '.assets[] | select( .name | contains("linux-amd64")).browser_download_url')
|
||||||
brew untap local/homebrew-python2
|
mkdir -p $GITHUB_WORKSPACE/bin
|
||||||
brew update
|
curl -Lo $GITHUB_WORKSPACE/bin/terraform-docs $tf_docs_download_url
|
||||||
brew install pre-commit terraform-docs terraform
|
chmod +x $GITHUB_WORKSPACE/bin/terraform-docs
|
||||||
|
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
|
||||||
- name: Check Docs
|
- name: Check Docs
|
||||||
run: pre-commit run --show-diff-on-failure --all-files terraform_docs
|
uses: pre-commit/action@v2.0.0
|
||||||
|
with:
|
||||||
|
extra_args: --show-diff-on-failure --all-files terraform_docs
|
||||||
|
|
||||||
validate:
|
validate:
|
||||||
name: Validate
|
name: Validate
|
||||||
|
|||||||
Reference in New Issue
Block a user