Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
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
41 changes: 36 additions & 5 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20'

- run: sudo apt-get install jq
if: matrix.os == 'ubuntu-latest'
Expand All @@ -37,8 +33,43 @@ jobs:
- name: Run tests
run: |
mkdir /tmp/tigris_cli_coverdata
GOCOVERDIR=/tmp/tigris_cli_coverdata/ BUILD_PARAM=-cover TIGRIS_CLI_TEST_FAST=1 make test
SUDO=sudo GOCOVERDIR=/tmp/tigris_cli_coverdata/ BUILD_PARAM=-cover TIGRIS_CLI_TEST_FAST=1 make test
go tool covdata textfmt -i=/tmp/tigris_cli_coverdata/ -o coverage.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

# FIXME: same as above, with TIGRIS_CLI_TEST_FAST=1 removed.
# Work on unifying.
test-all:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v3

- run: sudo apt-get install jq
if: matrix.os == 'ubuntu-latest'

- if: matrix.os == 'macOS-latest'
run: |
brew install jq colima docker docker-compose tree
colima start
mkdir -p ~/.docker/cli-plugins
ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose

- run: chocolatey install jq
if: matrix.os == 'windows-latest'

- run: npm install -g @go-task/cli

- name: Run tests
run: |
mkdir /tmp/tigris_cli_coverdata_all
SUDO=sudo GOCOVERDIR=/tmp/tigris_cli_coverdata_all/ BUILD_PARAM=-cover make test
go tool covdata textfmt -i=/tmp/tigris_cli_coverdata_all/ -o coverage.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
2 changes: 1 addition & 1 deletion .github/workflows/test-pkg-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:

- name: Windows
run: sh scripts/test_pkg_install.sh
if: false || matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest'
Loading