Skip to content

Commit

Permalink
Move GitHub Actions compatability job into its own workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisCarden committed Oct 29, 2024
1 parent 0814d98 commit c2ee180
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/compatability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Compatability

on:
schedule:
# Every Monday at 00:00:00 UTC.
# @see https://crontab.cronhub.io/
- cron: "0 0 * * 1"

workflow_dispatch:

jobs:
compatability:
name: Compatability
runs-on: ubuntu-latest
steps:
- name: Install rsync
uses: GuillaumeFalourd/setup-rsync@v1.2 # https://github.com/marketplace/actions/setup-rsync

- name: Set up PHP
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action
with:
php-version: '8.3'
coverage: none

- name: Checkout code
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout

- name: Install dependencies
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies

- name: Run compatability tests
run: composer compatability
22 changes: 0 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,28 +124,6 @@ jobs:
- name: "Run performance tests"
run: "composer phpbench -- --progress=plain --ansi"

compatability:
name: "Compatability"
runs-on: ubuntu-latest
steps:
- name: "Install rsync"
uses: GuillaumeFalourd/setup-rsync@v1.2 # https://github.com/marketplace/actions/setup-rsync

- name: "Set up PHP"
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action
with:
php-version: "8.3"
coverage: none

- name: "Checkout code"
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout

- name: "Install dependencies"
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies

- name: "Run compatability tests"
run: "composer compatability"

mutation:
name: "Mutation"
runs-on: ubuntu-latest
Expand Down

0 comments on commit c2ee180

Please sign in to comment.