diff --git a/.github/workflows/go_build.yml b/.github/workflows/ci.yml similarity index 56% rename from .github/workflows/go_build.yml rename to .github/workflows/ci.yml index b150162b..e7994552 100644 --- a/.github/workflows/go_build.yml +++ b/.github/workflows/ci.yml @@ -26,3 +26,18 @@ jobs: - name: Build run: source activate-opt && go build -v ./cmd/radiance + + - name: Test + run: source activate-opt && go test -v ./... + + # Check that go.mod and go.sum are up to date + - name: Tidy + run: | + go mod tidy + if [[ -n $(git status --porcelain go.mod go.sum) ]]; then + echo "go.mod or go.sum is not up to date. Please run 'go mod tidy' and commit the changes." + git --no-pager diff go.mod go.sum + exit 1 + fi + # TODO: Add linting step + Test Coverage +