diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae516e6..af2ad91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build and Test on: pull_request: merge_group: @@ -23,9 +23,20 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.22" - check-latest: true + go-version: "1.22.2" - name: Build run: GOARCH=${{ matrix.go-arch }} make build + + test: + runs-on: ubuntu-latest + needs: build + strategy: + matrix: + go-arch: ["amd64", "arm", "arm64"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.22.2" - name: Test run: GOARCH=${{ matrix.go-arch }} make test