-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change CI tool TravisCI -> Github Actions
- Loading branch information
1 parent
b786102
commit 4911fe0
Showing
2 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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' | ||
shell: bash | ||
env: | ||
VIRGIL_PURE_KIT_ENV: ${{ secrets.VIRGIL_PURE_KIT_ENV }} | ||
run: | | ||
echo "${VIRGIL_PURE_KIT_ENV}" > .env | ||
vendor/bin/phpunit --configuration phpunit.xml |
This file was deleted.
Oops, something went wrong.