-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from pelotech/add-tests-to-ci
Add unit/integration tests to CI build
- Loading branch information
Showing
3 changed files
with
37 additions
and
18 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,37 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install pre-commit | ||
run: pip install pre-commit | ||
- name: pre-commit | ||
run: pre-commit run --all-files --show-diff-on-failure | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Get kubebuilder | ||
uses: RyanSiu1995/[email protected] | ||
with: | ||
version: 4.1.1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
- name: Display Go version | ||
run: go version | ||
- name: Build manager library | ||
run: go build -o bin/manager github.com/uswitch/nidhogg/cmd/manager | ||
- name: Run tests | ||
run: go test ./pkg/... ./cmd/... |
This file was deleted.
Oops, something went wrong.
File renamed without changes.