Skip to content

Commit

Permalink
Added Github action for unit tests (#52)
Browse files Browse the repository at this point in the history
* Added gihub action for unit tests

* updated job name
  • Loading branch information
mfaizanse authored Aug 10, 2023
1 parent 015974d commit 7235854
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: validate crd
name: validate

on:
push:
Expand All @@ -7,7 +7,19 @@ on:
branches: [ "main" ]

jobs:
validate:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Sync GO dependencies
run: |
go mod tidy
go mod vendor
- name: Run tests
run: |
make test-only
validate-crd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -16,4 +28,4 @@ jobs:
# This is the Kubernetes version used by k3d. See https://kubernetes.io/releases/
version: v1.26.5
- name: apply crd
run: kubectl apply -f config/crd/bases/operator.kyma-project.io_eventings.yaml
run: kubectl apply -f config/crd/bases/operator.kyma-project.io_eventings.yaml

0 comments on commit 7235854

Please sign in to comment.