Skip to content

Commit

Permalink
Merge branch 'automate_release' of https://github.com/vamping111/terr…
Browse files Browse the repository at this point in the history
…aform-provider-rockitcloud into automate_release
  • Loading branch information
vamping111 authored and Linar Nasyyrov committed Dec 9, 2024
2 parents b5ac81b + 88fee36 commit 27b342d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 49 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rockitcloud_acc_tests.yml
Original file line number Diff line number Diff line change
@@ -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
49 changes: 0 additions & 49 deletions .github/workflows/rockitcloud_tests.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/rockitcloud_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 27b342d

Please sign in to comment.