Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

46 строки
1.2 KiB

  1. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  2. # SPDX-FileCopyrightText: 2022 Nikita Chernyi
  3. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. name: Matrix CI
  8. on: [push, pull_request] # yamllint disable-line rule:truthy
  9. permissions:
  10. contents: read
  11. jobs:
  12. prek:
  13. name: Run prek hooks
  14. runs-on: ubuntu-latest
  15. container:
  16. image: docker.io/archlinux:base-devel
  17. steps:
  18. # git must be installed before checkout so it does a proper clone
  19. # (with .git directory) instead of a tarball download.
  20. - name: Install git
  21. run: pacman -Sy --noconfirm git
  22. - name: Check out
  23. uses: actions/checkout@v6
  24. - name: Restore prek cache
  25. uses: actions/cache@v5
  26. with:
  27. path: var/prek
  28. key: arch-prek-v1-${{ hashFiles('.pre-commit-config.yaml') }}
  29. - name: Install dependencies
  30. run: pacman -S --noconfirm --needed just mise python
  31. - name: Run prek hooks
  32. run: |
  33. # The checkout action sets safe.directory using its own bundled
  34. # git, which is separate from the pacman-installed git that prek uses.
  35. git config --global --add safe.directory "$GITHUB_WORKSPACE"
  36. just prek-run-on-all