Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Use GitHub Actions to automatically check builds, lint, and run tests #363

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
imterryyy committed Jul 13, 2023
commit 5d9d9c58d4f503b9f7144b584d2771fff9163ccb
10 changes: 6 additions & 4 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -11,17 +11,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
steps:
- uses: actions/checkout@v3
- name: Setup golang
uses: actions/setup-go@v4
with:
go-version: '1.20.0-rc.1' # The Go version to download (if necessary) and use.
- name: setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- name: Lint code
run: go run build/ci.go lint
run: export GOROOT=$HOME/usr/local/go | export GOPATH=$HOME/go | go run build/ci.go lint
- name: Build tomo
run: go run build/ci.go install
- name: Test tomo