feat(lib): Add DynamicListTerraformIterator with support for lists or sets with objects that have properties that are only known at apply time #3353
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
name: Build | |
on: | |
merge_group: | |
types: [checks_requested] | |
pull_request: | |
paths: | |
- packages/** | |
- package.json | |
- yarn.lock | |
concurrency: | |
group: build-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-package: | |
runs-on: ubuntu-latest | |
container: | |
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform | |
env: | |
CHECKPOINT_DISABLE: "1" | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: "Add Git safe.directory" # Go 1.18+ started embedding repo info in the build and e.g. building @cdktf/hcl2json fails without this | |
run: git config --global --add safe.directory /__w/terraform-cdk/terraform-cdk | |
- name: ensure correct user | |
run: chown -R root /__w/terraform-cdk | |
# Setup caches for yarn, and go | |
- name: Get cache directory paths | |
id: global-cache-dir-path | |
run: | | |
echo "yarn=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
mkdir -p /usr/local/share/.cache/go | |
echo "go=/usr/local/share/.cache/go" >> $GITHUB_OUTPUT | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
path: ${{ steps.global-cache-dir-path.outputs.yarn }} | |
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-build | |
restore-keys: | | |
yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}- | |
yarn-${{ runner.os }}- | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
path: ${{ steps.global-cache-dir-path.outputs.go }} | |
key: go-${{ runner.os }}-${{ hashFiles('**/go.sum') }}-build | |
restore-keys: | | |
go-${{ runner.os }}-${{ hashFiles('**/go.sum') }}- | |
go-${{ runner.os }}- | |
- name: install dependencies | |
run: yarn install | |
- name: build and package | |
run: | | |
yarn build | |
yarn package | |
env: | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
GOCACHE: ${{ steps.global-cache-dir-path.outputs.go }} |