.github/workflows/main.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "8.2"
- "8.3"
- "8.4"
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: use https instead of http
run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
- name: composer install
run: composer install --prefer-dist --no-progress
- name: composer test
run: composer test
- name: codecov
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}