forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'upstream0910' into develop
- Loading branch information
Showing
49 changed files
with
18,685 additions
and
1,171 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
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,49 @@ | ||
name: "Functional" | ||
|
||
env: | ||
terraform_version: "1.2.8" | ||
C7N_FUNCTIONAL: true | ||
C7N_TEST_RUN: true | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
# UTC 6 AM aka 11 PM PST, 2 AM EST, everyday | ||
- cron: "0 6 * * *" | ||
|
||
jobs: | ||
AWS: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.8" | ||
|
||
- uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | ||
aws-region: us-east-1 | ||
|
||
- uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_version: "${{ env.terraform_version }}" | ||
|
||
- name: Install Requirements | ||
run: | | ||
mkdir -p .tfcache | ||
pip install --cache-dir=./.pip-cache -r requirements.txt | ||
- name: Test | ||
run: | | ||
pytest tests -m "not skiplive" -m terraform -n auto --junit-xml=report-aws.xml | ||
- name: JUnit Report Action | ||
uses: mikepenz/[email protected] | ||
if: always() | ||
with: | ||
report_paths: 'report-aws.xml' |
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
Oops, something went wrong.