testing.yml 535 B

12345678910111213141516171819202122
  1. name: Test against pacman
  2. on:
  3. pull_request:
  4. jobs:
  5. build:
  6. name: Lint and test yay
  7. runs-on: ubuntu-latest
  8. container:
  9. image: jguer/yay-builder:latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: actions/cache@v3
  13. with:
  14. path: ~/go/pkg/mod
  15. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  16. restore-keys: |
  17. ${{ runner.os }}-go-
  18. - name: Lint
  19. run: /app/bin/golangci-lint run ./...
  20. - name: Run Build and Tests
  21. run: make test