Skip to content

Commit

Permalink
.github/workflows: Add unit tests to PR check workflow
Browse files Browse the repository at this point in the history
Add unit-tests job for PR check workflow in github actions

Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo committed Sep 27, 2023
1 parent 97e2bed commit 88f151f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 88f151f

Please sign in to comment.