feat(install): allow install from local package #618
Workflow file for this run
This file contains hidden or 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
| # Copyright 2026 Columnar Technologies Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Go | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'cmd/dbc/**' | |
| pull_request: | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - 'cmd/dbc/**' | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # macos-15 is intel macos while macos-latest is arm64 | |
| os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest', 'macos-15' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
| with: | |
| go-version: 1.24.2 | |
| cache: true | |
| cache-dependency-path: go.sum | |
| - name: Build dbc | |
| run: go build ./cmd/dbc | |
| - name: Run Tests | |
| # the file with `test_registry` also requires windows, so we can safely add this tag | |
| # without it running on non-windows OSes | |
| run: go test -v -tags test_registry ./... | |
| # User and System level tests | |
| - name: Run Tests (User) | |
| run: go test -v ./... | |
| env: | |
| DBC_TEST_LEVEL_USER: 1 | |
| - name: Run Tests (System, Unixlike) | |
| # Run system tests with sudo on Unixlikes to replicate what users do | |
| if: runner.os != 'Windows' | |
| run: sudo -E go test -v ./... | |
| env: | |
| DBC_TEST_LEVEL_SYSTEM: 1 | |
| - name: Run Tests (System, Windows) | |
| if: runner.os == 'Windows' | |
| run: go test -v ./... | |
| env: | |
| DBC_TEST_LEVEL_SYSTEM: 1 |