Skip to content

Commit

Permalink
ci: Move go github actions (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak authored Mar 3, 2024
1 parent cbb8312 commit 398a8ea
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 48 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
pull_request:
push:
branches:
- master

env:
SYMFONY_ENV: test

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
symfony-versions: [false]
include:
- description: 'Symfony 5.*'
php: '8.1'
symfony-versions: '^5.4'
- description: 'Symfony 6.*'
php: '8.1'
symfony-versions: '^6.4'
- description: 'Symfony 7.*'
php: '8.2'
symfony-versions: '^7.0'
name: PHP ${{ matrix.php }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer config extra.symfony.require ${{ matrix.symfony-versions }}
if: matrix.symfony-versions

- name: Install dependencies
run: composer install

- name: Run PHPUnit tests
run: |
./vendor/bin/phpunit
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ Cron Bundle
===========

[![Packagist](https://img.shields.io/packagist/v/cron/cron-bundle.svg?style=flat-square)](https://packagist.org/packages/cron/cron-bundle)
[![Build Status](https://img.shields.io/travis/Cron/Symfony-Bundle.svg?style=flat-square)](https://travis-ci.org/Cron/Symfony-Bundle)
[![Build status](https://img.shields.io/github/actions/workflow/status/cron/symfony-bundle/ci.yaml?style=flat-square)](https://github.com/cron/symfony-bundle/actions/workflows/ci.yml)
[![Packagist](https://img.shields.io/packagist/dt/Cron/Cron-Bundle.svg?style=flat-square)](https://packagist.org/packages/cron/cron-bundle)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)

[Cron](https://github.com/Cron/Cron) integration for symfony.

Installation
Expand Down Expand Up @@ -94,9 +94,9 @@ Disable a job.
```shell
bin/console cron:run [--force] [job]
```
> which we borrowed from Symfony.
> Make sure to check out [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) as this will help you a lot.
> Please note that `--force` forces the job to be executed (even if disabled) based on the job schedule
> which we borrowed from Symfony.
> Make sure to check out [php-cs-fixer](https://github.com/fabpot/PHP-CS-Fixer) as this will help you a lot.
> Please note that `--force` forces the job to be executed (even if disabled) based on the job schedule
### run now, independent of the job schedule
```shell
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "*",
"monolog/monolog": "*",
"phpunit/phpunit": "^10",
"symfony/framework-bundle": "^5.0|^6.0|^7.0",
"symfony/security-csrf": "^5.0|^6.0|^7.0",
"symfony/translation": "^5.0|^6.0|^7.0",
"symfony/yaml": "^5.0|^6.0|^7.0"
Expand Down

0 comments on commit 398a8ea

Please sign in to comment.