action.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: "e2e"
  2. description: "runs our e2e test suite"
  3. runs:
  4. using: composite
  5. steps:
  6. - name: Configure AWS Credentials
  7. uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
  8. with:
  9. role-to-assume: ${{ env.AWS_OIDC_ROLE_ARN }}
  10. aws-region: ${{ env.AWS_REGION }}
  11. - name: Setup Go
  12. uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
  13. with:
  14. go-version-file: go.mod
  15. - name: Find the Go Cache
  16. id: go
  17. shell: bash
  18. run: |
  19. echo "build-cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT
  20. echo "mod-cache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
  21. - name: Cache the Go Build Cache
  22. uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
  23. with:
  24. path: ${{ steps.go.outputs.build-cache }}
  25. key: ${{ runner.os }}-build-unit-tests-${{ github.sha }}-${{ hashFiles('**/go.sum') }}
  26. restore-keys: ${{ runner.os }}-build-unit-tests-${{ github.sha }}-
  27. - name: Cache Go Dependencies
  28. uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
  29. with:
  30. path: ${{ steps.go.outputs.mod-cache }}
  31. key: ${{ runner.os }}-pkg-${{ github.sha }}-${{ hashFiles('**/go.sum') }}
  32. restore-keys: ${{ runner.os }}-pkg-${{ github.sha }}-
  33. - name: Setup kind
  34. # https://github.com/engineerd/setup-kind/releases/tag/v0.5.0
  35. uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 # v0.5.0
  36. with:
  37. version: ${{ env.KIND_VERSION }}
  38. wait: 10m
  39. image: ${{ env.KIND_IMAGE }}
  40. name: external-secrets
  41. - name: Setup Docker Buildx
  42. # https://github.com/docker/setup-buildx-action/releases/tag/v3.12.0
  43. uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
  44. with:
  45. install: true
  46. - name: Run e2e Tests
  47. shell: bash
  48. env:
  49. DOCKER_BUILD_ARGS: --load
  50. run: make test.e2e