testing-git.yml 904 B

123456789101112131415161718192021222324252627282930313233
  1. name: Test against pacman-git
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - "doc/**"
  6. - "**/*.po"
  7. - "README.md"
  8. - ".gitignore"
  9. jobs:
  10. build:
  11. name: Lint and test yay
  12. runs-on: ubuntu-latest
  13. container:
  14. image: jguer/yay-builder:latest
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v2
  18. - uses: actions/cache@v1
  19. with:
  20. path: ~/go/pkg/mod
  21. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  22. restore-keys: |
  23. ${{ runner.os }}-go-
  24. - name: checkout pacman-git
  25. run: |
  26. git clone https://aur.archlinux.org/pacman-git
  27. useradd github
  28. echo 'github ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
  29. chmod -R 777 pacman-git
  30. su github -c 'cd pacman-git; yes | makepkg -si --nocheck'
  31. - name: Run Build and Tests with pacman-git
  32. run: make test