diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bbd25d..71aac93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,24 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v2 + - name: Setup Go uses: actions/setup-go@v2 with: go-version: '^1.17' + - name: Format - run: gofmt -d -e -s . + run: make fmt + - name: Build run: make build + - name: Test run: make test diff --git a/Makefile b/Makefile index 8b4cd1e..8bd9f3d 100644 --- a/Makefile +++ b/Makefile @@ -4,5 +4,8 @@ build: test: go test -v ./... +fmt: + gofmt -d -e -s . + clean: go clean \ No newline at end of file