Skip to content

Commit

Permalink
Merge pull request #33 from k8stopologyawareschedwg/add-ci-gh-actions
Browse files Browse the repository at this point in the history
Add basic CI using github actions
  • Loading branch information
ffromani authored Feb 20, 2023
2 parents 38e693a + a4c4677 commit 3ea63c3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI - base

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

code-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up golang
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Vet
run: make vet

- name: Run unit tests
run: make unit-tests
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: unit-tests
unit-tests:
@go test ./pkg/apis/...

.PHONY: vet
vet:
@go vet ./pkg/...

0 comments on commit 3ea63c3

Please sign in to comment.