ci.yml 553 B

123456789101112131415161718192021222324252627282930
  1. name: ci
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. strategy:
  6. fail-fast: false
  7. matrix:
  8. os: [ubuntu-latest, windows-latest, macos-latest]
  9. runs-on: ${{ matrix.os }}
  10. steps:
  11. - uses: actions/checkout@v2
  12. - uses: actions/setup-go@v2
  13. with:
  14. go-version: '^1.17'
  15. - name: Format
  16. run: make fmt
  17. - name: Test
  18. run: make test
  19. - name: Build
  20. run: make build
  21. - uses: actions/upload-artifact@v2
  22. with:
  23. name: discordo
  24. path: discordo