forked from Hithomelabs/CFTunnels
26 lines
768 B
YAML
26 lines
768 B
YAML
name: Daily cloudflare API integration test
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
schedule:
|
|
- cron: '0 */12 * * *' # 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 integrationTestOnly |