Skip to content

Commit

Permalink
TE-9104 CI to GithubActions
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 5, 2021
1 parent 2177259 commit 5e9f455
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 38 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
push:
branches:
- 'master'
pull_request:
workflow_dispatch:

jobs:
validation:
name: Validation
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, bcmath
coverage: none

- name: Composer Install
run: composer install --prefer-dist --no-interaction --profile

- name: Run validation
run: composer validate

- name: Syntax check
run: find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )

lowest:
name: Prefer Lowest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
extensions: mbstring, intl, bcmath
coverage: none

- name: Composer Install
run: composer install --prefer-dist --no-interaction --profile

- name: Composer Update
run: composer update --prefer-lowest --prefer-dist --no-interaction --profile -vvv

- name: Composer Install prefer lowest tool
run: composer require --dev dereuromark/composer-prefer-lowest;

- name: Run validation
run: vendor/bin/validate-prefer-lowest -m
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ProductList Module
[![Build Status](https://travis-ci.org/spryker/product-list.svg)](https://travis-ci.org/spryker/product-list)
[![Latest Stable Version](https://poser.pugx.org/spryker/product-list/v/stable.svg)](https://packagist.org/packages/spryker/product-list)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.3-8892BF.svg)](https://php.net/)

ProductList provides infrastructure and functionality to handle white/black lists of a concrete products for a specific merchants.
Expand Down

0 comments on commit 5e9f455

Please sign in to comment.