From 8cebbf4de4ead312599300587d53a33c794fad21 Mon Sep 17 00:00:00 2001 From: SergeySeroshtan Date: Sun, 28 Apr 2024 15:42:40 -0400 Subject: [PATCH] Change CI tool TravisCI -> Github Actions --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ .travis.yml | 12 ------------ 2 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..939af95 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build and Test +on: + push: + branches: + - "**" +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-13, windows-latest] + php-version: ["8.2", "8.3"] + include: + - os: ubuntu-latest + phpts: "nts" + - os: macos-13 + phpts: "nts" + - os: windows-latest + phpts: "ts" + steps: + - uses: actions/checkout@v4 + - name: Install PHP ${{ matrix.php-version }} + id: setup-php + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + tools: composer:v2 + env: + update: true + phpts: ${{ matrix.phpts }} + - name: Check PHP Version + run: php -v + - name: Build and Install + run: composer install + - name: Run Tests + if: runner.os != 'Windows' + run: | + echo ${VIRGIL_PURE_KIT_ENV} > .env + vendor/bin/phpunit --configuration phpunit.xml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 07c1d57..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php -os: linux -dist: jammy -php: - - 8.2 -env: - - PHP=8.2 -before_install: - - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d -install: - - composer install -script: vendor/bin/phpunit --configuration phpunit.xml