diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e8d525..68a9b83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,24 @@ on: jobs: - build: - name: Build + vet: + name: Vet + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.15 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Vet code + run: go vet + + format: + name: Format runs-on: ubuntu-latest steps: @@ -38,6 +54,19 @@ jobs: git push fi + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.15 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Build run: make