generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7caede9
commit c959cdf
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Unit Tests | ||
|
||
env: | ||
KYMA_STABILITY: "unstable" | ||
KYMA: "./hack/kyma" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "release-*" | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
- 'sec-scanners-config.yaml' | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "release-*" | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
- 'sec-scanners-config.yaml' | ||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup go environment | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
cache: false | ||
|
||
- name: Sync go dependencies | ||
run: | | ||
go mod tidy | ||
go mod vendor | ||
- name: Run tests | ||
run: | | ||
make test |