| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- name: "e2e"
- description: "runs our e2e test suite"
- inputs:
- make-target:
- description: "Make target to execute (for example: test.e2e or test.e2e.v2)"
- required: false
- default: "test.e2e"
- runs:
- using: composite
- steps:
- - name: Configure AWS Credentials
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
- with:
- role-to-assume: ${{ env.AWS_OIDC_ROLE_ARN }}
- aws-region: ${{ env.AWS_REGION }}
- - name: Setup Go
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- with:
- go-version-file: go.mod
- - name: Find the Go Cache
- id: go
- shell: bash
- run: |
- echo "build-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
- echo "mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
- - name: Cache the Go Build Cache
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
- with:
- path: ${{ steps.go.outputs.build-cache }}
- key: ${{ runner.os }}-build-unit-tests-${{ github.sha }}-${{ hashFiles('**/go.sum') }}
- restore-keys: ${{ runner.os }}-build-unit-tests-${{ github.sha }}-
- - name: Cache Go Dependencies
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
- with:
- path: ${{ steps.go.outputs.mod-cache }}
- key: ${{ runner.os }}-pkg-${{ github.sha }}-${{ hashFiles('**/go.sum') }}
- restore-keys: ${{ runner.os }}-pkg-${{ github.sha }}-
- - name: Setup kind
- # https://github.com/engineerd/setup-kind/releases/tag/v0.5.0
- uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
- with:
- version: ${{ env.KIND_VERSION }}
- wait: 10m
- image: ${{ env.KIND_IMAGE }}
- name: external-secrets
- - name: Setup Docker Buildx
- # https://github.com/docker/setup-buildx-action/releases/tag/v3.12.0
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- with:
- install: true
- - name: Run e2e Tests
- shell: bash
- env:
- DOCKER_BUILD_ARGS: --load
- MAKE_TARGET: ${{ inputs.make-target }}
- run: |
- case "$MAKE_TARGET" in
- test.e2e|test.e2e.v2|test.e2e.v2.operational)
- make "$MAKE_TARGET"
- ;;
- *)
- echo "unsupported make target: $MAKE_TARGET" >&2
- exit 1
- ;;
- esac
|