Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing with GitHub actions #4

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3ffd362
Playing with GitHub actions
Sep 28, 2019
7208b3a
Just a test
Sep 28, 2019
a5b2783
Do me some composer stuff
Sep 28, 2019
669e34d
Install php
Sep 28, 2019
85f4e31
Print composer package
Sep 28, 2019
1324d8d
Try somethign else
Sep 28, 2019
212dcff
Print composer and php versions
Sep 28, 2019
27f1983
Try something else
Sep 28, 2019
7bc5676
Maybe this will work
Sep 28, 2019
a4bd469
Try again please.
Sep 28, 2019
12e6c63
Try powershell
Sep 28, 2019
5c39dba
silent install
Sep 28, 2019
9e7bbfa
Try to supress fake errors
Sep 28, 2019
4bd0425
Try to shut composer up
Sep 28, 2019
37431b2
Shut composer up when isntall as well
Sep 28, 2019
26cb9a4
try redirecting error output
Sep 28, 2019
5d616c8
More supression
Sep 28, 2019
5e6144f
Try running a subprocess
Sep 28, 2019
a91a712
try something else
Sep 28, 2019
83e2cc4
Show errors
Sep 28, 2019
a8a2110
Split out steps
Sep 28, 2019
4df910c
Remove extra commands
Sep 28, 2019
bf15a9f
Install intl
Sep 28, 2019
f5f1207
Add fileinfo
Sep 28, 2019
39810a8
Install recipe testing dev
Sep 28, 2019
ee314dc
Trying to run tests
Sep 28, 2019
07b8358
Split installation
Sep 28, 2019
70f545a
Fix php unit call
Sep 28, 2019
9174aea
Create phpunit.xml.dist
Sep 28, 2019
f35ba21
Add mysql to base build
Sep 28, 2019
7b4dccc
enable more mytsqlmthings
Sep 28, 2019
51a43ba
remove inexsiting extension
Sep 30, 2019
527afc9
Add a MySQL database
Sep 30, 2019
f0997c6
Explicitely define environement settings
Sep 30, 2019
9a2f428
make sure we have access to mysql
Sep 30, 2019
ece25c9
Try getting mysql working
Sep 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on: [push]

jobs:
build:

runs-on: windows-latest
services:
mysql:
image: "mysql:5.7"
env:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Verify MySQL connection from host
run: mysql --host 127.0.0.1 -uroot -ppassword -e "SHOW DATABASES"

# steps:
# - uses: actions/checkout@v1

# - name: Installing PHP
# uses: shivammathur/setup-php@master
# with:
# php-version: 7.3
# extension-csv: mbstring, xdebug, intl, fileinfo, mysqli, pdo, pdo_mysql

# - name: versions of everything
# shell: powershell
# run: |
# composer -V
# php -v

# - name: Install composer dependencies
# shell: powershell
# run: |
# composer validate
# composer require silverstripe/recipe-testing:1.x-dev silverstripe/recipe-core:4.4.x-dev silverstripe/versioned:1.4.x-dev --no-update --quiet

# - run: composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
# shell: powershell

# - name: Run tests
# run: vendor/bin/phpunit vendor/silverstripe/admin/tests/php
# # env:
# # SS_DATABASE_CLASS: MySQLDatabase
# # SS_DATABASE_USERNAME: root
# # SS_DATABASE_PASSWORD: root
# # SS_DATABASE_CHOOSE_NAME: true
# # SS_DATABASE_SERVER: "127.0.0.1"
10 changes: 10 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Standard module phpunit configuration.
Requires PHPUnit ^5.7
-->
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/php</directory>
</testsuite>
</phpunit>