Merge pull request #786 from justinsb/enable_github_actions #1
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
--- | |
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 |