docker-ci.yml 850 B

1234567891011121314151617181920212223242526272829303132
  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. pull_request:
  10. jobs:
  11. build:
  12. name: Lint and test yay
  13. # This job runs on Linux
  14. runs-on: ubuntu-latest
  15. container:
  16. image: samip537/archlinux:devel
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v2
  20. - uses: actions/cache@v1
  21. with:
  22. path: ~/go/pkg/mod
  23. key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
  24. restore-keys: |
  25. ${{ runner.os }}-go-
  26. - name: Run Build and tests
  27. run: |
  28. pacman -Sy --noconfirm go
  29. curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.26.0
  30. ./bin/golangci-lint run ./...
  31. make test