mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 00:34:31 +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:
|
||||
name: Docs
|
||||
runs-on: macos-latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Install Deps
|
||||
- uses: actions/setup-python@v2
|
||||
- name: Install terraform-docs
|
||||
run: |
|
||||
# Temporary fix for https://github.com/actions/virtual-environments/issues/1811
|
||||
brew untap local/homebrew-openssl
|
||||
brew untap local/homebrew-python2
|
||||
brew update
|
||||
brew install pre-commit terraform-docs terraform
|
||||
# Get the download url of the latest version of terraform-docs
|
||||
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')
|
||||
mkdir -p $GITHUB_WORKSPACE/bin
|
||||
curl -Lo $GITHUB_WORKSPACE/bin/terraform-docs $tf_docs_download_url
|
||||
chmod +x $GITHUB_WORKSPACE/bin/terraform-docs
|
||||
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
|
||||
- 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:
|
||||
name: Validate
|
||||
|
||||
Reference in New Issue
Block a user