-
Notifications
You must be signed in to change notification settings - Fork 413
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 #786 from justinsb/enable_github_actions
Enable github actions for CI
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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,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 |
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