Add simple github actions

Makes it easy for anyone to run tests on github, doesn't preclude us
using prow also.
This commit is contained in:
justinsb 2023-07-29 10:56:59 -04:00
parent 71a7aca57e
commit abbccb07a5
1 changed files with 48 additions and 0 deletions

48
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,48 @@
---
name: CI
'on':
- push
- pull_request
env:
GOPROXY: https://proxy.golang.org
GOPATH: ${{ github.workspace }}/go
permissions:
contents: read
jobs:
build-linux-amd64:
runs-on: ubuntu-latest
steps:
- name: Set up go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- uses: actions/checkout@v3
with:
path: git-sync
- name: make all-build
working-directory: git-sync
run: |
make all-build
test:
runs-on: ubuntu-latest
steps:
- name: Set up go
uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- uses: actions/checkout@v3
with:
path: git-sync
- name: make test
working-directory: git-sync
run: |
make test