From 45a8edf5775a28d6d7cdc58bf999228a5bb38462 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 4 Apr 2024 17:21:55 +0200 Subject: [PATCH] uses GitHub Actions --- .github/workflows/coding-style.yml | 17 +++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/coding-style.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml new file mode 100644 index 0000000000..27ec1b2828 --- /dev/null +++ b/.github/workflows/coding-style.yml @@ -0,0 +1,17 @@ +name: Coding Style + +on: [push, pull_request] + +jobs: + nette_cc: + name: Nette Code Checker + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + coverage: none + + - run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress + - run: php temp/code-checker/code-checker --no-progress diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 550b89053d..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -script: - - php code-checker/src/code-checker.php - -before_script: - - travis_retry composer create-project nette/code-checker code-checker ~2.5 --no-interaction - -sudo: false - -cache: - directories: - - $HOME/.composer/cache