forked from netascode/terraform-aci-nac-aci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 12e662a
Showing
30 changed files
with
7,333 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: 'daily' |
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,67 @@ | ||
name: Tests | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
static: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
concurrency: testing_environment | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Python Setup | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Terraform Setup | ||
uses: hashicorp/setup-terraform@v2 | ||
|
||
- name: Tflint Setup | ||
uses: terraform-linters/setup-tflint@v3 | ||
|
||
- name: Terraform Docs Setup | ||
run: | | ||
mkdir terraform-docs && cd terraform-docs | ||
curl -sSLo terraform-docs.tar.gz https://terraform-docs.io/dl/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz | ||
tar -xzf terraform-docs.tar.gz | ||
chmod +x terraform-docs | ||
echo "$GITHUB_WORKSPACE/terraform-docs" >> $GITHUB_PATH | ||
- name: Pre-commit Checks | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Terraform Test | ||
id: test | ||
env: | ||
ACI_USERNAME: ${{ secrets.ACI_USERNAME }} | ||
ACI_PASSWORD: ${{ secrets.ACI_PASSWORD }} | ||
ACI_URL: ${{ secrets.ACI_URL }} | ||
run: terraform test -junit-xml=test-report.xml | ||
|
||
- name: Publish Integration Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
junit_files: test-report.xml | ||
check_name: 'Integration Test Results' | ||
|
||
- name: Webex Notification | ||
if: always() | ||
uses: qsnyder/action-wxt@master | ||
env: | ||
TOKEN: ${{ secrets.WEBEX_TOKEN }} | ||
ROOMID: ${{ secrets.WEBEX_ROOM_ID }} | ||
MESSAGE: | | ||
[**[${{ job.status }}] ${{ github.repository }} #${{ github.run_number }}**](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
* Commit: [${{ github.event.head_commit.message }}](${{ github.event.head_commit.url }})[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}) | ||
* Author: ${{ github.event.sender.login }} | ||
* Branch: ${{ github.ref }} ${{ github.head_ref }} | ||
* Event: ${{ github.event_name }} |
Oops, something went wrong.