Skip to content

Commit e94abb9

Browse files
committed
Add unit/integration tests to CI build
1 parent 0ebc82b commit e94abb9

File tree

3 files changed

+35
-18
lines changed

3 files changed

+35
-18
lines changed

.github/workflows/build.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: install pre-commit
16+
run: pip install pre-commit
17+
- name: pre-commit
18+
run: pre-commit run --all-files --show-diff-on-failure
19+
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Get kubebuilder
25+
uses: RyanSiu1995/[email protected]
26+
with:
27+
version: 4.1.1
28+
- name: Setup Go
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version: '1.21.x'
32+
- name: Display Go version
33+
run: go version
34+
- name: Run tests
35+
run: go test ./pkg/... ./cmd/...

.github/workflows/pre-commit.yaml

-18
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)