Replace describe-config for atmos-get-setting, add optional cache and azure storage options #837
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
name: "Integration Tests" | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
AWS_REGION: us-east-2 | |
# Permissions required for assuming AWS identity | |
permissions: | |
id-token: write | |
contents: read | |
actions: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- shell: bash | |
run: | | |
mkdir -p ${{ runner.temp }} | |
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml | |
for file in ./tests/terraform/stacks/catalog/*.yaml; do | |
if [ -f "$file" ]; then | |
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file" | |
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file" | |
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file" | |
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file" | |
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file" | |
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file" | |
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file" | |
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file" | |
fi | |
done | |
- name: Plan Atmos Component | |
uses: ./ | |
with: | |
component: "foobar" | |
stack: "plat-ue2-sandbox" | |
atmos-config-path: ${{ runner.temp }} | |
atmos-version: 1.99.0 | |
skip-checkout: true |