Skip to content

Commit

Permalink
Add GitHub workflow ci
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Nov 3, 2023
1 parent 256558f commit a81fdb1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.x, 8.x]

steps:
- uses: actions/checkout@v3
- name: Use PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Setup problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install latest dependencies
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --no-progress
- run: vendor/bin/phpunit

0 comments on commit a81fdb1

Please sign in to comment.