Skip to content

Commit

Permalink
adding ci workflow for ginkgo tests
Browse files Browse the repository at this point in the history
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
  • Loading branch information
Prateeknandle committed Jan 11, 2023
1 parent 7903ff0 commit ecf328e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,31 @@ jobs:
go get .
gosec -exclude=G204,G304,G107 -exclude-dir=protobuf/ ./...
working-directory: src

go-ginkgo-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: v1.18

- name: Setup Enviroment
run: |
# setup kubernetes environment
./k3s/install_k3s.sh
- name: Run KubeArmor in background
run: |
curl -sfL http://get.kubearmor.io/ | sudo sh -s -- -b /usr/local/bin
karmor install
- name: Install Ginkgo
run: |
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
- name: Run ginkgo tests
run: ginkgo -r
working-directory: tests

0 comments on commit ecf328e

Please sign in to comment.