action.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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@v1
  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@v3
  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. uses: engineerd/setup-kind@v0.5.0
  35. with:
  36. version: ${{ env.KIND_VERSION }}
  37. wait: 10m
  38. image: ${{ env.KIND_IMAGE }}
  39. name: external-secrets
  40. - name: Setup Docker Buildx
  41. uses: docker/setup-buildx-action@v2
  42. with:
  43. version: ${{ env.DOCKER_BUILDX_VERSION }}
  44. install: true
  45. - name: Run e2e Tests
  46. shell: bash
  47. env:
  48. DOCKER_BUILD_ARGS: --load
  49. run: make test.e2e