Skip to content
Merged
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
39 changes: 0 additions & 39 deletions .github/workflows/php_84.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/php_85.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Tests
on: push

jobs:
build-84:
name: Static analysis, unit tests, and linting on PHP 8.4
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup PHP 8.4
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ./vendor
key: composer-${{ runner.os }}-8.4

- name: Install dependencies
run: |
composer install

- name: Run PHPStan
run: |
./vendor/bin/phpstan

- name: PHP Code Sniffer
run: |
./vendor/bin/phpcs

- name: Run PHPUnit
run: |
./vendor/bin/phpunit

build-85:
name: Static analysis, unit tests, and linting on PHP 8.5
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup PHP 8.5
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
tools: composer
coverage: pcov

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ./vendor
key: composer-${{ runner.os }}-8.5

- name: Install dependencies
run: |
composer install

- name: Run PHPStan
run: |
./vendor/bin/phpstan

- name: PHP Code Sniffer
run: |
./vendor/bin/phpcs

- name: Run PHPUnit
run: |
./vendor/bin/phpunit --coverage-clover ./coverage.xml

- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Distance
[![Build Status](https://travis-ci.org/ldebrouwer/distance.svg)](https://travis-ci.org/ldebrouwer/distance)
[![Tests](https://github.com/ldebrouwer/distance/actions/workflows/tests.yml/badge.svg)](https://github.com/ldebrouwer/distance/actions/workflows/tests.yml)
[![Latest Stable Version](https://poser.pugx.org/ldebrouwer/distance/v/stable)](https://packagist.org/packages/ldebrouwer/distance)
[![Total Downloads](https://poser.pugx.org/ldebrouwer/distance/downloads)](https://packagist.org/packages/ldebrouwer/distance)
[![Latest Unstable Version](https://poser.pugx.org/ldebrouwer/distance/v/unstable)](https://packagist.org/packages/ldebrouwer/distance)
Expand Down