diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml index 371a2ea..46a3543 100644 --- a/.github/workflows/terraform.yaml +++ b/.github/workflows/terraform.yaml @@ -23,8 +23,22 @@ jobs: - uses: hmarr/debug-action@v3 - uses: actions/checkout@v4 - - name: Setup Tools - uses: ./.github/actions/setup-tools + - name: Install asdf + uses: asdf-vm/actions/setup@v3 + + - name: Cache tools + uses: actions/cache@v4 + with: + path: /home/runner/.asdf + key: ${{ runner.os }}-${{ hashFiles('**/.tool-versions') }} + + - name: Install required tools + run: | + cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true + asdf plugin-update --all + asdf install + asdf reshim + shell: bash - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4