Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
#1 Init Github Actions with QA
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-ducrot committed Jun 23, 2021
1 parent dd4202e commit a3e0f7f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
push:
branches:
- "master"

jobs:
build_test_lastest:
runs-on: ubuntu-latest
name: Build and test on php-fpm:${{ matrix.php }}-builder
container: smartbooster/php-fpm:${{ matrix.php }}-builder
strategy:
matrix:
php: [ 7.3, 7.4 ]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Check PHP Version
run: php -v

# —— Composer 🧙‍️ —————————————————————————————————————————————————————————
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install
run: composer install --prefer-dist

- name: Qualimetry
run: make qa

0 comments on commit a3e0f7f

Please sign in to comment.