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
64 changes: 0 additions & 64 deletions .github/workflows/orca.yml

This file was deleted.

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

on:
push:
pull_request:

permissions:
contents: read

jobs:
tests:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
include:
# Earliest supported PHP version (see "php" in composer.json).
- php-version: "7.4"
experimental: false
# Current PHP version.
- php-version: "8.4"
experimental: false
# Next PHP version. This slot is always non-blocking by design: it
# gives early warning about the upcoming release without failing the
# build over tooling that has not caught up yet. When 8.5 becomes
# current, promote it and open a new experimental slot for 8.6.
- php-version: "8.5"
experimental: true

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
tools: composer:v2

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

- name: Cache Composer packages
uses: actions/cache@v4
with:
path: ~/.cache/composer/files
key: composer-${{ matrix.php-version }}-${{ hashFiles('composer.json') }}
restore-keys: composer-${{ matrix.php-version }}-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: PHPUnit
run: vendor/bin/phpunit

lint:
name: Coding standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff -v

- name: PHPMD
run: vendor/bin/phpmd src/,test/ text ./phpmd.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ composer.lock
# Ignore PHP-CS-Fixer files
/.php_cs
/.php_cs.cache
/.php-cs-fixer.cache
/cs_fixer_tmp_*
35 changes: 0 additions & 35 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,6 +1,6 @@
# HTTP HMAC Signer for PHP

[![Build Status](https://travis-ci.org/acquia/http-hmac-php.svg)](https://travis-ci.org/acquia/http-hmac-php)
[![Tests](https://github.com/acquia/http-hmac-php/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/acquia/http-hmac-php/actions/workflows/tests.yml)
[![Total Downloads](https://poser.pugx.org/acquia/http-hmac-php/downloads)](https://packagist.org/packages/acquia/http-hmac-php)
[![Latest Stable Version](https://poser.pugx.org/acquia/http-hmac-php/v/stable.svg)](https://packagist.org/packages/acquia/http-hmac-php)
[![License](https://poser.pugx.org/acquia/http-hmac-php/license.svg)](https://packagist.org/packages/acquia/http-hmac-php)
Expand Down
Loading