File: checks.yml

package info (click to toggle)
php-async-aws-ses 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: php: 1,658; makefile: 28
file content (38 lines) | stat: -rw-r--r-- 987 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: BC Check

on:
  push:
    branches:
      - master

jobs:
  roave-bc-check:
    name: Roave BC Check
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Modify composer.json
        run: |
          sed -i -re 's/"require": \{/"minimum-stability": "dev","prefer-stable": true,"require": \{/' composer.json
          cat composer.json

          git config --local user.email "github@async-aws.com"
          git config --local user.name "AsyncAws Bot"
          git commit -am "Allow unstable dependencies"

      - name: Install PHP with extensions
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.3
          tools: composer:v2

      - name: Install roave/backward-compatibility-check
        run: composer require --dev roave/backward-compatibility-check

      - name: Roave BC Check
        run: vendor/bin/roave-backward-compatibility-check