ci.yml 341 B

1234567891011121314151617
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout
  8. uses: actions/checkout@v2
  9. - name: Setup Go
  10. uses: actions/setup-go@v2
  11. with:
  12. go-version: '^1.17'
  13. - name: Format
  14. run: gofmt -d -e -s .
  15. - name: Build
  16. run: go build .