Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
* text=auto

/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.phan export-ignore
/.php_cs export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/changelog.md export-ignore
/composer.json export-ignore
/docs export-ignore
/examples export-ignore
/phpdoc.dist.xml export-ignore
/test export-ignore
/travis.phpunit.xml.dist export-ignore
/UPGRADING.md export-ignore
/.gitignore export-ignore
/.github export-ignore
/phpcs.xml export-ignore
13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Tests"
on:
- push
- pull_request
jobs:
coding-standard:
runs-on: ubuntu-22.04
name: Coding standards
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
tools: cs2pr

# Install dependencies and handle caching in one go.
- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Check coding standards
id: phpcs
run: ./vendor/bin/phpcs -s --report-full --report-checkstyle=./phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml
15 changes: 7 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
docs/*
!docs/README.md
test/message.txt
test/testbootstrap.php
build/
vendor/
*.pem
composer.lock
.php_cs.cache
/.settings
/.buildpath
/.phpcs-cache
/.project
/build
/composer.lock
/vendor
41 changes: 0 additions & 41 deletions .phan/config.php

This file was deleted.

31 changes: 0 additions & 31 deletions .php_cs

This file was deleted.

128 changes: 0 additions & 128 deletions .scrutinizer.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

Loading