Add gh workflow to run tests on PRs (#108)

This commit is contained in:
Dominic LoBue 2020-10-04 17:01:44 -07:00 committed by GitHub
parent acb1700b7c
commit 7b5e62e266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,5 @@
name: Build
on:
push:
branches:

23
.github/workflows/test.yaml vendored Normal file
View File

@ -0,0 +1,23 @@
name: CI
on:
pull_request:
branches:
- master
paths-ignore:
- 'runner/**'
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install kubebuilder
run: |
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.2.0/kubebuilder_2.2.0_linux_amd64.tar.gz
tar zxvf kubebuilder_2.2.0_linux_amd64.tar.gz
sudo mv kubebuilder_2.2.0_linux_amd64 /usr/local/kubebuilder
- name: Run tests
run: make test