Service endpoint alias fix #106
Workflow file for this run
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: Build and Test | |
jobs: | |
build_test: | |
strategy: | |
matrix: | |
version: ['1.5.7', 'latest'] | |
tool: ['terraform', 'tofu'] | |
exclude: | |
- tool: tofu | |
version: '1.5.7' | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
env: | |
AWS_DEFAULT_REGION: us-east-1 | |
DNS_ADDRESS: 127.0.0.1 | |
TF_CMD: ${{matrix.tool}} | |
steps: | |
- uses: hashicorp/setup-terraform@v3 | |
if: ${{ matrix.tool == 'terraform' }} | |
with: | |
terraform_version: ${{matrix.version}} | |
- uses: opentofu/setup-opentofu@v1 | |
if: ${{ matrix.tool == 'tofu' }} | |
with: | |
tofu_version: ${{matrix.version}} | |
tofu_wrapper: false | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Pull LocalStack Docker image | |
run: docker pull localstack/localstack & | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: make install | |
- name: Run code linter | |
run: make lint | |
- name: Run tests | |
run: make test |