diff --git a/.github/workflows/rockitcloud_acc_tests.yml b/.github/workflows/rockitcloud_acc_tests.yml new file mode 100644 index 00000000000..c65a3f8aa2f --- /dev/null +++ b/.github/workflows/rockitcloud_acc_tests.yml @@ -0,0 +1,39 @@ +name: Run acceptance tests + +on: + pull_request: + types: [labeled] + branches: [develop] + +jobs: + acc-tests: + runs-on: ubuntu-22.04 + if: contains(github.event.pull_request.labels.*.name, 'acc') + steps: + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: 1.21.x + + - uses: actions/checkout@v3 + + - name: Run acceptance tests + env: + AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.secret_access_key }} + EC2_URL: ${{ secrets.ec2_url }} + PAAS_URL: ${{ secrets.paas_url }} + DIRECT_CONNECT_URL: ${{ secrets.direct_connect_url }} + DX_CONNECTION_NAME: ${{ secrets.dx_connection_name }} + DX_LAG_NAME: ${{ secrets.dx_lag_name }} + DX_VLAN: ${{ secrets.dx_vlan }} + run: | + echo "Run acceptance tests for PAAS" + make testacc TESTS=TestAccPaaSServiceElasticSearch_basic PKG=paas + echo "Run acceptance tests for Direct Connect" + make testacc TESTS=TestAccDirectConnectConnectionDataSource_basic PKG=directconnect + make testacc TESTS=TestAccDirectConnectGatewayAssociation_basicTransitGatewaySingleAccount PKG=directconnect + make testacc TESTS=TestAccDirectConnectGateway_basic PKG=directconnect + make testacc TESTS=TestAccDirectConnectGateway_disappears PKG=directconnect + make testacc TESTS=TestAccDirectConnectLagDataSource_basic PKG=directconnect + make testacc TESTS=TestAccDirectConnectTransitVirtualInterface_serial PKG=directconnect diff --git a/.github/workflows/rockitcloud_tests.yml b/.github/workflows/rockitcloud_tests.yml deleted file mode 100644 index 27d34137027..00000000000 --- a/.github/workflows/rockitcloud_tests.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Run tests - -on: - pull_request: - types: [opened, labeled] - branches: [develop] - -jobs: - unit-tests: - runs-on: ubuntu-22.04 - steps: - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: 1.21.x - - - uses: actions/checkout@v3 - - - name: Install tools - run: | - make tools - - name: Install Docker - uses: crazy-max/ghaction-setup-docker@v3 - - - name: Run Unit tests - run: | - make lint - make docs-lint - make website-lint - make test - acc-tests: - runs-on: ubuntu-22.04 - if: contains(github.event.pull_request.labels.*.name, 'acc') - steps: - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: 1.21.x - - - uses: actions/checkout@v3 - - - name: Run acceptance tests - env: - AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.secret_access_key }} - EC2_URL: ${{ secrets.ec2_url }} - PAAS_URL: ${{ secrets.paas_url }} - run: | - make testacc TESTS=TestAccPaaSServiceElasticSearch_basic PKG=paas diff --git a/.github/workflows/rockitcloud_unit_tests.yml b/.github/workflows/rockitcloud_unit_tests.yml new file mode 100644 index 00000000000..cccd2c809db --- /dev/null +++ b/.github/workflows/rockitcloud_unit_tests.yml @@ -0,0 +1,30 @@ +name: Run unit tests + +on: + pull_request: + types: [opened] + branches: [develop] + +jobs: + unit-tests: + runs-on: ubuntu-22.04 + steps: + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: 1.21.x + + - uses: actions/checkout@v3 + + - name: Install tools + run: | + make tools + - name: Install Docker + uses: crazy-max/ghaction-setup-docker@v3 + + - name: Run Unit tests + run: | + make lint + make docs-lint + make website-lint + make test