forked from phalcon/incubator-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements Github actions and Integration tests
Remove ocular Env test Enable coverage Setup integration Update env Update test suite Sync env variables name WIP Mongo Connect WIP publish port WIP localhost with publish port
- Loading branch information
Showing
4 changed files
with
72 additions
and
14 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,59 @@ | ||
name: Testing Suite | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-and-test-linux: | ||
services: | ||
mongodb: | ||
image: mongo:4.2 | ||
ports: | ||
- 27017:27017 | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4'] | ||
|
||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | ||
steps: | ||
|
||
- name: Git checkout | ||
uses: actions/checkout@v2-beta | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- name: Setup Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Setup Composer Token | ||
run: | | ||
# To increase the Composer rate limit we're use GitHub authentication | ||
if [ -n "${{ secrets.COMPOSER_TOKEN }}" ]; then | ||
composer config github-oauth.github.com "${{ secrets.COMPOSER_TOKEN }}" | ||
fi | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
ini-values: apc.enable_cli=on, session.save_path=/tmp | ||
tools: pecl | ||
extensions: mbstring, intl, json, imagick, phalcon | ||
|
||
- name: Install packages | ||
run: composer install --prefer-dist | ||
|
||
- name: Setup tests | ||
run: | | ||
cp tests/_ci/.env.default .env | ||
vendor/bin/codecept build | ||
- name: Run integration tests | ||
run: vendor/bin/codecept run --ext DotReporter integration --coverage --coverage-xml |
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
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
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