Skip to content

Commit

Permalink
ci: Move go github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Mar 3, 2024
1 parent cbb8312 commit 40f2321
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 43 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.

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 40f2321

Please sign in to comment.