Add github action pipeline to run unit tests

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
Dimitris Karakasilis 2022-11-11 11:46:18 +02:00
parent 82c6e8fcd0
commit c0d6b81b5d
No known key found for this signature in database
GPG Key ID: 286DCAFD2C97DDE3

26
.github/workflows/unit-tests.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Unit tests
on:
push:
branches:
- master
pull_request:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '^1.18'
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.5.0
- name: Run tests
run: |
ginkgo run ./...