Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Use ubuntu-latest instead of MacOS for docs checks #1074

Merged
merged 2 commits into from
Oct 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
barryib marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down