Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
3b749d15
Unverified
Commit
3b749d15
authored
Jan 20, 2020
by
Jens Segers
Committed by
GitHub
Jan 20, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1908 from Smolevich/add-improvements-for-ci
Refactor build-ci.yml
parents
811cb3d0
03de87dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
build-ci.yml
.github/workflows/build-ci.yml
+14
-6
No files found.
.github/workflows/build-ci.yml
View file @
3b749d15
...
...
@@ -8,10 +8,11 @@ on:
jobs
:
build
:
runs-on
:
ubuntu-latest
runs-on
:
${{matrix.os}}
strategy
:
matrix
:
php
:
[
7.1
,
7.2
,
7.3
]
php
:
[
7.1
,
7.2
,
7.3
,
7.4
]
os
:
[
'
ubuntu-latest'
]
services
:
mongo
:
image
:
mongo
...
...
@@ -25,18 +26,25 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD
:
'
yes'
MYSQL_DATABASE
:
'
unittest'
MYSQL_ROOT_PASSWORD
:
name
:
PHP ${{ matrix.php }} Test ${{ matrix.env }}
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Show php version
run
:
php${{ matrix.php }} -v && composer -V
-
name
:
Show docker and docker-compose versions
run
:
|
docker version
-
name
:
Debug if needed
run
:
if [[ "$DEBUG" == "true" ]]; then env; fi
run
:
if [[ "$DEBUG" == "true" ]]; then
docker version &&
env; fi
env
:
DEBUG
:
${{secrets.DEBUG}}
-
name
:
Get Composer Cache Directory
id
:
composer-cache
run
:
echo "::set-output name=dir::$(composer config cache-files-dir)"
-
name
:
Cache dependencies
uses
:
actions/cache@v1
with
:
path
:
${{ steps.composer-cache.outputs.dir }}
key
:
${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys
:
${{ matrix.os }}-composer-
-
name
:
Install dependencies
run
:
|
composer install --no-interaction
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment