diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 4a199104c..a41757bb4 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -2,7 +2,7 @@ name: PR check run-name: "PR #${{ github.event.number }} check (${{ github.sha }})" on: [pull_request] jobs: - build-and-unit-test: + build-and-formatter: runs-on: ubuntu-22.04 steps: - name: Check out repository code @@ -25,3 +25,23 @@ jobs: version: v1.54.2 - name: Build binaries run: make build + unit-tests: + needs: build-and-formatter + runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.20'] + steps: + - name: install make + run: sudo apt-get install make + - name: set up go 1.x + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} + - name: checkout + uses: actions/checkout@v3 + - name: run build + run: make build + - name: run unit tests + run: make unit-tests + \ No newline at end of file