Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Add GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Sep 11, 2021
1 parent 7d8be0e commit 72fe08d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run tests
on:
pull_request:
push:
branches: [main]
jobs:
test:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
php: ['7.4', '8.0']
experimental: [false]
include:
- php: '8.1'
experimental: true
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: php${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: php${{ matrix.php }}-
- run: composer install --prefer-dist --optimize-autoloader --no-interaction --no-progress
- run: vendor/bin/phpunit --testdox
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Solana PHP SDK

[![Latest Version on Packagist](https://img.shields.io/packagist/v/tightenco/solana-php-sdk.svg?style=flat-square)](https://packagist.org/packages/tightenco/solana-php-sdk)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/tighten/solana-php-sdk/run-tests?label=tests)](https://github.com/tighten/solana-php-sdk/actions?query=workflow%3Arun-tests+branch%3Amaster)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/tighten/solana-php-sdk/run-tests?label=tests)](https://github.com/tighten/solana-php-sdk/actions?query=workflow%3Arun-tests+branch%3Amain)


Simple PHP SDK for Solana.
Expand Down

0 comments on commit 72fe08d

Please sign in to comment.