Merge Fabric FAST (#435)
Co-authored-by: Simone Ruffilli <sruffilli@google.com> Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
36
.github/workflows/linting.yml
vendored
36
.github/workflows/linting.yml
vendored
@@ -16,6 +16,7 @@ name: "Linting"
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- fast-dev
|
||||
- master
|
||||
tags:
|
||||
- ci
|
||||
@@ -51,23 +52,22 @@ jobs:
|
||||
run: |
|
||||
terraform fmt -recursive -check -diff $GITHUB_WORKSPACE
|
||||
|
||||
- name: Check documentation
|
||||
id: documentation
|
||||
- name: Check documentation (fabric)
|
||||
id: documentation-fabric
|
||||
run: |
|
||||
python3 tools/check_documentation.py \
|
||||
cloud-operations \
|
||||
data-solutions \
|
||||
factories \
|
||||
foundations \
|
||||
modules \
|
||||
networking
|
||||
python3 tools/check_documentation.py examples modules
|
||||
|
||||
markdown-link-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
with:
|
||||
use-quiet-mode: 'yes'
|
||||
use-verbose-mode: 'yes'
|
||||
config-file: '.github/workflows/markdown-link-check.json'
|
||||
- name: Check documentation (fast)
|
||||
id: documentation-fast
|
||||
run: |
|
||||
python3 tools/check_documentation.py --files --show-extra fast
|
||||
|
||||
# markdown-link-check:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@master
|
||||
# - uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
# with:
|
||||
# use-quiet-mode: "yes"
|
||||
# use-verbose-mode: "yes"
|
||||
# config-file: ".github/workflows/markdown-link-check.json"
|
||||
|
||||
72
.github/workflows/tests.yml
vendored
72
.github/workflows/tests.yml
vendored
@@ -18,6 +18,7 @@ on:
|
||||
- cron: "45 2 * * *"
|
||||
pull_request:
|
||||
branches:
|
||||
- fast-dev
|
||||
- master
|
||||
tags:
|
||||
- ci
|
||||
@@ -27,6 +28,38 @@ env:
|
||||
PYTEST_ADDOPTS: "--color=yes"
|
||||
|
||||
jobs:
|
||||
doc-examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
- name: Set up Terraform
|
||||
uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
terraform_version: 1.1.3
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Set environment
|
||||
run: |
|
||||
echo "TF_PLUGIN_CACHE_DIR=${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}" >> $GITHUB_ENV
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
|
||||
mkdir --parents ${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}
|
||||
terraform -chdir=tests providers lock
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r tests/requirements.txt
|
||||
|
||||
- name: Run tests on documentation examples
|
||||
id: doc-examples
|
||||
run: |
|
||||
pytest -n 4 -vv tests/doc_examples
|
||||
|
||||
examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -40,12 +73,15 @@ jobs:
|
||||
- name: Set up Terraform
|
||||
uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
terraform_version: 1.0.9
|
||||
terraform_version: 1.1.3
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Set environment
|
||||
run: |
|
||||
echo "TF_PLUGIN_CACHE_DIR=${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}" >> $GITHUB_ENV
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
|
||||
mkdir --parents ${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}
|
||||
terraform -chdir=tests providers lock
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -56,35 +92,6 @@ jobs:
|
||||
run: |
|
||||
pytest -n 4 -vv tests/examples
|
||||
|
||||
module-examples:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.9"
|
||||
|
||||
- name: Set up Terraform
|
||||
uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
terraform_version: 1.0.9
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Set environment
|
||||
run: |
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r tests/requirements.txt
|
||||
|
||||
- name: Run tests examples
|
||||
id: test-examples
|
||||
run: |
|
||||
pytest -n 4 -vv tests/modules/examples
|
||||
|
||||
modules:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -98,12 +105,15 @@ jobs:
|
||||
- name: Set up Terraform
|
||||
uses: hashicorp/setup-terraform@v1
|
||||
with:
|
||||
terraform_version: 1.0.9
|
||||
terraform_version: 1.1.3
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Set environment
|
||||
run: |
|
||||
echo "TF_PLUGIN_CACHE_DIR=${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}" >> $GITHUB_ENV
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS=${GITHUB_WORKSPACE}/.github/workflows/fake-key.json" >> $GITHUB_ENV
|
||||
mkdir --parents ${{ github.workspace }}/.terraform.d/plugin-cache-${GITHUB_JOB}
|
||||
terraform -chdir=tests providers lock
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user