Skip to content

Commit

Permalink
Tests running via github actions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjgreen authored May 24, 2022
1 parent 9ca1818 commit eea406f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Database Build

on:
push:
branches: [master]
branches: [master, actions]
pull_request:
branches: [master]

Expand Down Expand Up @@ -34,13 +34,10 @@ jobs:
- name: Create build output folder
run: mkdir -p build/logs

- name: Set up MySQL
run: sudo /etc/init.d/mysql start

- name: Run test suite
run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
run: make ci

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
# - name: Upload coverage results to Coveralls
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
7 changes: 6 additions & 1 deletion docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
FROM composer:latest

RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install pdo pdo_mysql

RUN apk --no-cache -q add autoconf g++ make \
&& pecl -q install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del autoconf g++ make

0 comments on commit eea406f

Please sign in to comment.