Skip to content

Commit

Permalink
add env variable, update file, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alcohol committed Dec 27, 2023
1 parent a62db35 commit 7dbec98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 46 deletions.
59 changes: 14 additions & 45 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
---
name: Continuous Integration - Main
name: Continuous Integration

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
on: [push, pull_request]

Check warning on line 4 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / yamllint

4:1 [truthy] truthy value should be one of [false, true]

jobs:

php-cs-fixer:
runs-on: ubuntu-latest
env:
PHP_CS_FIXER_IGNORE_ENV: true
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none
tools: composer, cs2pr
- id: cache-php-cs-fixer-vendor
uses: actions/cache@v3
with:
path: |
tools/php-cs-fixer/vendor
key: php-cs-fixer-vendor-${{ hashFiles('tools/php-cs-fixer/composer.lock') }}
tools: cs2pr, composer
- run: composer --working-dir=tools/php-cs-fixer install
if: steps.cache-php-cs-fixer-vendor.outputs.cache-hit != 'true'
- uses: actions/cache@v3
with:
path: .php-cs-fixer.cache
key: php-cs-fixer-cache-${{ hashFiles('tools/php-cs-fixer/composer.*', '.php-cs-fixer.dist.php') }}
- run: >
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix
--config=.php-cs-fixer.dist.php
--diff
--dry-run
--format=checkstyle
| cs2pr --colorize --prepend-filename --prepend-source
- run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --dry-run --format=checkstyle | cs2pr

Check failure on line 20 in .github/workflows/ci.yaml

View workflow job for this annotation

GitHub Actions / yamllint

20:81 [line-length] line too long (104 > 80 characters)

phpstan:
runs-on: ubuntu-latest
Expand All @@ -50,22 +26,21 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none
tools: cs2pr, phpstan
- run: |
composer install
composer --working-dir=tools/phpstan install
tools/phpstan/vendor/bin/phpstan --error-format=checkstyle | cs2pr
tools: cs2pr, composer
- run: composer update
- run: composer --working-dir=tools/phpstan install
- run: tools/phpstan/vendor/bin/phpstan --error-format=checkstyle | cs2pr

phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.1, 8.0, 7.4]
php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3]
stability: [prefer-lowest, prefer-stable]
name: phpunit on PHP ${{ matrix.php }}@${{ matrix.stability }}
name: PHPUnit on PHP ${{ matrix.php }}@${{ matrix.stability }}
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
Expand All @@ -86,9 +61,3 @@ jobs:
- uses: ibiqlik/action-yamllint@v3
with:
format: github
config_data: |
extends: default
rules:
line-length: false
truthy:
check-keys: false
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

A PHP library providing ISO 4217 data.

[![Build Status](https://img.shields.io/travis/alcohol/iso4217/master.svg?style=flat-square)](https://travis-ci.org/alcohol/iso4217)
[![codecov](https://codecov.io/gh/alcohol/iso4217/branch/master/graph/badge.svg)](https://codecov.io/gh/alcohol/iso4217)
[![License](https://img.shields.io/packagist/l/alcohol/iso4217.svg?style=flat-square)](https://packagist.org/packages/alcohol/iso4217)

Expand Down

0 comments on commit 7dbec98

Please sign in to comment.