testing.yml 724 B

12345678910111213141516171819202122232425262728293031
  1. name: Build
  2. # This workflow is triggered on pushes to the repository.
  3. on:
  4. push:
  5. paths-ignore:
  6. - "doc/**"
  7. - "README.md"
  8. - ".gitignore"
  9. branches-ignore:
  10. - "master"
  11. pull_request:
  12. jobs:
  13. build:
  14. name: Lint and test yay
  15. runs-on: ubuntu-latest
  16. container:
  17. image: jguer/yay-builder:latest
  18. steps:
  19. - name: Checkout
  20. uses: actions/checkout@v2
  21. - uses: actions/cache@v1
  22. with:
  23. path: ~/go/pkg/mod
  24. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  25. restore-keys: |
  26. ${{ runner.os }}-go-
  27. - name: Lint
  28. run: /app/bin/golangci-lint run ./...
  29. - name: Run Build and Tests
  30. run: make test