Skip to content

feat: INTMDB-1023 private endpoint #1251

feat: INTMDB-1023 private endpoint

feat: INTMDB-1023 private endpoint #1251

Workflow file for this run

name: 'E2E Testing'
on:
push:
branches:
- master
pull_request:
jobs:
change-detection:
runs-on: ubuntu-latest
permissions:
pull-requests: read
repository-projects: read
outputs:
project: ${{ steps.filter.outputs.project }}
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name == 'push' }}
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
project:
- 'cfn-resources/project/**'
project:
needs: change-detection
if: ${{ needs.change-detection.outputs.project == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- run: pip install cloudformation-cli-go-plugin
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'cfn-resources/go.mod'
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_TEST_ENV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_TEST_ENV }}
aws-region: eu-west-1
- name: Run E2E test
shell: bash
env:
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }}
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }}
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }}
MONGODB_ATLAS_BASE_URL: https://cloud-dev.mongodb.com/
MONGODB_ATLAS_SECRET_PROFILE: cfn-cloud-dev-github-action
run: |
pushd cfn-resources/test/e2e/project
go test -v project_test.go