Skip to content

Commit

Permalink
ci(schedule): Run cron for end to end test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Oct 7, 2024
1 parent a104532 commit 0d09930
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 201 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/markdown.yml → .github/workflows/doc-links.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: Documentation links

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: write
contents: read

name: Markdown files test and update
jobs:
markdown-test-and-update:
name: Markdown files test and update
markdown-test-links:
name: Markdown test links
runs-on: ubuntu-latest
steps:

- name: Clone sources
uses: actions/checkout@v4
with:
Expand All @@ -33,12 +38,3 @@ jobs:
cd extension
awesome_bot README.md --skip-save-results --allow-dupe --base-url http://localhost:8080/
awesome_bot doc/*.md --skip-save-results --allow-dupe --white-list repo.magento.com,ddev.site,Composer-plugin-against-Dependency-Confusion-attacks --base-url http://localhost:8080/doc/
- name: Generate table of contents
uses: technote-space/toc-generator@v4
with:
MAX_HEADER_LEVEL: 5
COMMIT_NAME: CrowdSec Dev Bot
TARGET_PATHS: 'doc/*.md'
CHECK_ONLY_DEFAULT_BRANCH: true
CREATE_PR: true
18 changes: 9 additions & 9 deletions .github/workflows/end-to-end-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
branches:
- main
paths-ignore:
- '**.md'
- "**.md"
schedule:
- cron: "25 02 * * THU"
workflow_dispatch:
inputs:
debug_enabled:
Expand All @@ -26,12 +28,12 @@ jobs:
matrix:
# Last 2 patches for the current minor, and last patch for the previous minor, greatest php version
include:
- m2-version: '2.3.7'
php-version: '7.4'
- m2-version: '2.4.6'
php-version: '8.2'
- m2-version: '2.4.7'
php-version: '8.3'
- m2-version: "2.3.7"
php-version: "7.4"
- m2-version: "2.4.6"
php-version: "8.2"
- m2-version: "2.4.7"
php-version: "8.3"

name: End-to-end test suite
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
Expand All @@ -42,7 +44,6 @@ jobs:
EXTENSION_PATH: "crowdsec-bouncer"

steps:

- name: Install Magento 2 with DDEV
uses: julienloizelet/magento2-ddev-installation@v3
with:
Expand Down Expand Up @@ -172,4 +173,3 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
timeout-minutes: 30
if: failure() && github.event.inputs.debug_enabled == 'true'

7 changes: 2 additions & 5 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
name: Keep Alive
on:

schedule:
- cron: '0 3 * * 4'
- cron: "0 3 * * 4"

permissions:
actions: write

jobs:
keep-alive:

name: Keep Alive
runs-on: ubuntu-latest

steps:

- name: Clone project files
uses: actions/checkout@v4

# keepalive-workflow keeps GitHub from turning off tests after 60 days
- uses: gautamkrishnar/keepalive-workflow@v2
with:
time_elapsed: 45
workflow_files: "static-and-unit-test-suite.yml"
workflow_files: "end-to-end-test-suite.yml"
20 changes: 9 additions & 11 deletions .github/workflows/static-and-unit-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
branches:
- main
paths-ignore:
- '**.md'
schedule:
- cron: '25 02 * * THU'
- "**.md"
workflow_dispatch:

permissions:
Expand All @@ -23,14 +21,14 @@ jobs:
matrix:
# First and last patch for the current and previous minor, greatest php version
include:
- m2-version: '2.3.0'
php-version: '7.2'
- m2-version: '2.3.7'
php-version: '7.4'
- m2-version: '2.4.0'
php-version: '7.4'
- m2-version: '2.4.7'
php-version: '8.3'
- m2-version: "2.3.0"
php-version: "7.2"
- m2-version: "2.3.7"
php-version: "7.4"
- m2-version: "2.4.0"
php-version: "7.4"
- m2-version: "2.4.7"
php-version: "8.3"

name: Static and unit test suite
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 0d09930

Please sign in to comment.