From 3f4158fa9ba52773afe4dff8b38cf82d703e8688 Mon Sep 17 00:00:00 2001 From: David Rans Date: Tue, 20 Aug 2024 10:21:56 -0700 Subject: [PATCH] Replace Travis config with GH Actions --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9cb5def --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: phpunit + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: ['5.6', '7.4', '8.3'] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up PHP ${{ matrix.php-version }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + + - name: Install dependencies + run: composer install + + - name: Run tests + run: vendor/bin/phpunit QueryGeneratorTest.php diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f1c5b85..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: php -php: - - 5.6 - - 7.4 - - 8.0 -install: composer update -script: vendor/bin/phpunit QueryGeneratorTest.php