backwards-compatibility.yml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. name: "Backwards compatibility"
  2. on:
  3. pull_request:
  4. permissions:
  5. contents: read
  6. jobs:
  7. bc-check:
  8. name: "Backwards compatibility check"
  9. runs-on: "ubuntu-latest"
  10. steps:
  11. - name: "Checkout"
  12. uses: "actions/checkout@v3"
  13. with:
  14. fetch-depth: 0
  15. # User in the container seems to be different than the cloned repo's owner.
  16. # Git doesn't like that as the repo will then be unusable by the owner.
  17. # We don't care about this here since this is only used for running one test.
  18. # See https://github.com/actions/runner/issues/2033
  19. - name: Workaround directory permissions
  20. run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig
  21. - name: "BC Check"
  22. uses: docker://nyholm/roave-bc-check-ga
  23. with:
  24. args: --from=${{ github.event.pull_request.base.sha }}