Skip to content

Commit

Permalink
Configure un lancement périodique de la CI
Browse files Browse the repository at this point in the history
Pour tester régulièrement les régressions qui proviendraient de nos
dépendances dont les versions ne sont pas fixées de façon strictes.

L'auteur de ce commit devrait être le seul à recevoir les notifications
liées aux éxecutions planifiées (voir
https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs).

L'exécution planifiée ne se fera que sur la branche principale du dépôt
(comportement par défaut de `schedule`, voir
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
et les conditions rajoutées au script empêchent d'avoir des exécutions
planifiées sur les forks.
  • Loading branch information
philippemilink authored and Situphen committed Mar 20, 2023
1 parent e152093 commit 234ba42
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: ["push", "pull_request"]
on:
push:
pull_request:
schedule:
- cron: "30 3 * * WED" # every Wednesday at 3:30 AM, only main branch

env:
NODE_VERSION: "16" # needs to be also updated in .nvmrc
Expand All @@ -24,6 +28,9 @@ jobs:
name: Lint back-end
runs-on: ubuntu-22.04

# do not execute scheduled jobs on forks:
if: ${{ github.event.name != 'schedule' || github.repository_owner == 'zestedesavoir' }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -44,6 +51,9 @@ jobs:
name: Build Sphinx documentation
runs-on: ubuntu-22.04

# do not execute scheduled jobs on forks:
if: ${{ github.event.name != 'schedule' || github.repository_owner == 'zestedesavoir' }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -86,6 +96,9 @@ jobs:
name: Lint and build front-end
runs-on: ubuntu-22.04

# do not execute scheduled jobs on forks:
if: ${{ github.event.name != 'schedule' || github.repository_owner == 'zestedesavoir' }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 234ba42

Please sign in to comment.