Skip to content

Commit

Permalink
chore: enabled cluster test (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Jun 7, 2024
1 parent a44825d commit 3c9493c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ jobs:
- name: Run tests
run: make install test

# - name: Run Cluster Tests
# if: ${{ (github.ref == 'refs/heads/main' || github.ref_type == 'tag') && github.event_name != 'pull_request' }}
# env:
# TWILIO_ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
# TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
# TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY }}
# run: make testacc
- name: Run Cluster Tests
if: ${{ (github.ref == 'refs/heads/main' || github.ref_type == 'tag') && github.event_name != 'pull_request' }}
env:
TWILIO_ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY }}
run: make testacc

# - name: Run Test Coverage
# if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && !github.event.pull_request.head.repo.fork && matrix.go == '1.18'}}
# run: make test-cover
- name: Run Test Coverage
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && !github.event.pull_request.head.repo.fork && matrix.go == '1.18'}}
run: make test-cover

- name: Install SonarCloud scanner and run analysis
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && !github.event.pull_request.head.repo.fork && matrix.go == '1.18' }}
Expand Down

0 comments on commit 3c9493c

Please sign in to comment.