Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Workflow by Adding the Secrets #18

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ jobs:
cache: maven

# Build
- name: Building
- name: Build
run: mvn -B package
env:
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
TWILIO_API_KEY: ${{ secrets.TWILIO_API_KEY }}
TWILIO_API_TOKEN: ${{ secrets.TWILIO_API_TOKEN }}
TWILIO_SENDER_NUMBER: ${{ secrets.TWILIO_SENDER_NUMBER }}
TWILIO_VERIFIED_NUMBER: ${{ secrets.TWILIO_VERIFIED_NUMBER }}

Test:
runs-on: ubuntu-latest
Expand All @@ -42,26 +50,25 @@ jobs:
distribution: 'temurin'
cache: maven

# # Install Docker Compose
# - name: Install Docker Compose
# run: |
# sudo apt-get update
# sudo apt-get install docker-compose -y

# Install Docker
- name: Install Docker
run: |
sudo apt-get update
sudo apt-get install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER

- name: Setup Testcontainers Cloud Client
uses: atomicjar/testcontainers-cloud-setup-action@v1
with:
token: ${{ secrets.TC_CLOUD_TOKEN }}

# Test
- name: Testing
- name: Test
run: mvn test
env:
REDIS_HOST: ${{ secrets.REDIS_HOST }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
TWILIO_API_KEY: ${{ secrets.TWILIO_API_KEY }}
TWILIO_API_TOKEN: ${{ secrets.TWILIO_API_TOKEN }}
TWILIO_SENDER_NUMBER: ${{ secrets.TWILIO_SENDER_NUMBER }}
TWILIO_VERIFIED_NUMBER: ${{ secrets.TWILIO_VERIFIED_NUMBER }}


Code-Quality:
Checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down