Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Test periodic job (cron) - run script every 5 min
Browse files Browse the repository at this point in the history
  • Loading branch information
hitrov committed Jan 6, 2022
1 parent 77786fc commit 67fe41e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
branches:
- main

# schedule:
# - cron: '*/10 * * * *'
schedule:
- cron: '*/5 * * * *'

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0']
php-versions: ['7.4']
name: integration-tests (PHP ${{ matrix.php-versions }})
steps:
- uses: actions/checkout@v1
Expand All @@ -41,9 +41,9 @@ jobs:
- name: Install dependencies
run: |
composer update --prefer-dist --no-progress
- name: Run test suite
- name: Run script
run: |
vendor/bin/phpunit --color tests/
php index.php
env:
OCI_REGION: ${{ secrets.OCI_REGION }}
OCI_USER_ID: ${{ secrets.OCI_USER_ID }}
Expand All @@ -64,6 +64,3 @@ jobs:
TEST_IMAGE_ID: ${{ secrets.TEST_IMAGE_ID }}
TEST_SUBNET_ID: ${{ secrets.TEST_SUBNET_ID }}

# - name: Run script
# run: |
# php index.php

1 comment on commit 67fe41e

@ivanarya007
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi

Please sign in to comment.