diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml deleted file mode 100644 index 6a2b91b..0000000 --- a/.github/workflows/blank.yml +++ /dev/null @@ -1,36 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ master ] - pull_request: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..627a38a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Build + +on: + push: ~ + pull_request: ~ + release: + types: [created] + schedule: + - + cron: "0 1 * * 6" # Run at 1am every Saturday + +jobs: + tests: + runs-on: ubuntu-20.04 + name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}" + strategy: + fail-fast: false + matrix: + php: ["7.4", "8.0"] + symfony: ["^4.4", "^5.2"] + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + coverage: none + + - name: Restrict Symfony version + if: matrix.symfony != '' + run: | + composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.11" + composer config extra.symfony.require "${{ matrix.symfony }}" + + - name: Install dependencies + run: composer update + + - name: Run analysis + run: composer validate --strict + + - name: Run tests + run: vendor/bin/behat --strict -vvv --no-interaction diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 001fa53..0000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: php - -php: - - 7.2 - - 7.3 - - 7.4 - - 8.0 - -env: - - SYMFONY_VERSION=3.4.* - - SYMFONY_VERSION=4.4.* - - SYMFONY_VERSION=5.0.* - -matrix: - include: - - php: 7.1 - env: SYMFONY_VERSION=3.4.* - - php: 7.1 - env: SYMFONY_VERSION=4.4.* - -cache: - directories: - - ~/.composer/cache/files - -before_install: - - phpenv config-rm xdebug.ini || true - -install: - - composer require symfony/dependency-injection:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist - - composer update --prefer-dist - -script: - - composer validate --strict - - - vendor/bin/behat --strict -vvv --no-interaction diff --git a/LICENSE b/LICENSE index 3609acb..eaa6aa7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2016-2017 Łukasz Chruściel +Copyright (c) 2016-2021 Łukasz Chruściel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/composer.json b/composer.json index 47e48bb..e4ddda6 100644 --- a/composer.json +++ b/composer.json @@ -9,9 +9,9 @@ } ], "require": { - "php": "^7.1 || ^8.0", - "behat/behat": "^3.4", - "symfony/dependency-injection": "^3.4 || ^4.1 || ^5.0" + "php": "^7.4 || ^8.0", + "behat/behat": "^3.8", + "symfony/dependency-injection": "^4.4 || ^5.2" }, "require-dev": { "friends-of-behat/test-context": "^1.0"