26 lines
829 B
YAML
26 lines
829 B
YAML
name: Daily cloudflare API integration test
|
|
on:
|
|
push:
|
|
branches: [ test ]
|
|
# schedule:
|
|
# - cron: '0 * * * *' # Every hour
|
|
# workflow_dispatch:
|
|
|
|
jobs:
|
|
cloudflare-api-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: JDK setup
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '17'
|
|
- name: Run integration tests with Cloudflare API
|
|
env:
|
|
SPRING_PROFILES_ACTIVE: integration
|
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
|
|
CLOUDFLARE_EMAIL: hitanshu98@gmail.com
|
|
run: ./gradlew test --tests "com.hithomelabs.CFTunnels.Integration.CoudflareApiIntegrationTest" |