From 87fb4a9d0b8354741e9d0a11b1180b9068bc9b01 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Fri, 5 Feb 2021 15:32:49 +0100 Subject: [PATCH] Year 2021: Code Strikes Back --- .github/workflows/blank.yml | 36 ------------------------------------ .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 25 ------------------------- LICENSE | 2 +- README.md | 4 ++-- composer.json | 11 ++++++----- 6 files changed, 46 insertions(+), 69 deletions(-) delete mode 100644 .github/workflows/blank.yml create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml 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..5329a3d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +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 }}" + strategy: + fail-fast: false + matrix: + php: ["7.4", "8.0"] + + steps: + - uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php }}" + coverage: none + + - 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 ae27111..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: php - -php: - - 7.1 - - nightly - -matrix: - allow_failures: - - php: nightly - fast_finish: true - -cache: - directories: - - vendor - -before_install: - - phpenv config-rm xdebug.ini || true - -install: - - composer update --prefer-dist - -script: - - composer validate --strict - - - vendor/bin/behat --strict diff --git a/LICENSE b/LICENSE index d538248..baf5748 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2016-2017 Kamil Kokot +Copyright (c) 2016-2021 Kamil Kokot 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/README.md b/README.md index 451f7a0..35a522a 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Suite Settings Extension [![License](https://img.shields.io/packagist/l/friends-of-behat/suite-settings-extension.svg)](https://packagist.org/packages/friends-of-behat/suite-settings-extension) [![Version](https://img.shields.io/packagist/v/friends-of-behat/suite-settings-extension.svg)](https://packagist.org/packages/friends-of-behat/suite-settings-extension) [![Build status on Linux](https://img.shields.io/travis/FriendsOfBehat/SuiteSettingsExtension/master.svg)](http://travis-ci.org/FriendsOfBehat/SuiteSettingsExtension) [![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/FriendsOfBehat/SuiteSettingsExtension.svg)](https://scrutinizer-ci.com/g/FriendsOfBehat/SuiteSettingsExtension/) -Allows to overwrite suites' default settings. +Allows overwriting suites' default settings. ## Usage 1. Install it: ```bash - $ composer require friends-of-behat/suite-settings-extension --dev + composer require friends-of-behat/suite-settings-extension --dev ``` 2. Enable and configure default suite settings in your Behat configuration: diff --git a/composer.json b/composer.json index 9c474a4..fcd6826 100644 --- a/composer.json +++ b/composer.json @@ -6,18 +6,19 @@ { "name": "Kamil Kokot", "email": "kamil@kokot.me", - "homepage": "http://kamil.kokot.me" + "homepage": "https://kamilkokot.com" } ], "require": { - "php": "^7.1", - - "behat/behat": "^3.1" + "php": "^7.4 || ^8.0", + "behat/behat": "^3.8" }, "require-dev": { "friends-of-behat/test-context": "^1.0" }, "autoload": { - "psr-4": { "FriendsOfBehat\\SuiteSettingsExtension\\": "src/" } + "psr-4": { + "FriendsOfBehat\\SuiteSettingsExtension\\": "src/" + } } }