diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f6a943d..912ca00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,6 @@ on: branches: [ "master" ] jobs: - build: runs-on: ubuntu-latest steps: @@ -21,8 +20,28 @@ jobs: - name: Build run: go build -v ./... + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + - name: Test run: go test -v ./... + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + - name: Format run: diff -u <(echo -n) <(gofmt -d ./)