File: backwards-compatibility.yml

package info (click to toggle)
php-league-commonmark 2.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,544 kB
  • sloc: php: 20,670; xml: 1,998; ruby: 45; makefile: 21; javascript: 15
file content (31 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download
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
name: "Backwards compatibility"

on:
    pull_request:

permissions:
  contents: read

jobs:
    bc-check:
        name: "Backwards compatibility check"

        runs-on: "ubuntu-latest"

        steps:
            - name: "Checkout"
              uses: "actions/checkout@v6"
              with:
                  fetch-depth: 0

            # User in the container seems to be different than the cloned repo's owner.
            # Git doesn't like that as the repo will then be unusable by the owner.
            # We don't care about this here since this is only  used for running one test.
            # See https://github.com/actions/runner/issues/2033
            - name: Workaround directory permissions
              run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig

            - name: "BC Check"
              uses: docker://nyholm/roave-bc-check-ga
              with:
                  args: --from=${{ github.event.pull_request.base.sha }}