Skip to content

Commit

Permalink
feat: add time triggered with setting nightly equals true
Browse files Browse the repository at this point in the history
  • Loading branch information
SotaTek-DuyLe committed Jul 5, 2024
1 parent 9e0e14a commit 528ca1d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on:
schedule:
- cron: "0 0 * * *"
push:

permissions:
Expand All @@ -15,8 +17,20 @@ jobs:
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
aws_role_arn: arn:aws:iam::332405224602:role/ci
aws_region: eu-central-1
nightly: true
secrets:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
earthly_runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}

nightly:
runs-on: ubuntu-latest
if: ${{ inputs.nightly == true }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run example test
run: ./tests/schemathesis_tests/hooks/hooks.py

0 comments on commit 528ca1d

Please sign in to comment.