Skip to content

Commit

Permalink
Merge pull request #1 from teamneusta/feature/add-pipeline
Browse files Browse the repository at this point in the history
added initial version of github pipeline config
  • Loading branch information
nehlsen authored Sep 28, 2022
2 parents 13672cb + 714e43d commit d6f3ad0
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/php81-test-and-qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: php81-test-and-qa

on:
push:
branches: [ "v1" ]
pull_request:
branches: [ "v1" ]

permissions:
contents: read

jobs:
symfony-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- uses: actions/checkout@v3

- name: Copy .env.test.local
run: php -r "file_exists('.env.test.local') || copy('.env.test', '.env.test.local');"

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit

#- name: Check CS-Fixer
# run: bin/composer fix-cs:check


#- name: Check PHPStan
# run: bin/composer phpstan-gitlab

0 comments on commit d6f3ad0

Please sign in to comment.