|
13 | 13 | steps: |
14 | 14 | - name: Checkout code |
15 | 15 | uses: actions/checkout@v3 |
16 | | - - name: Setup Go |
17 | | - uses: actions/setup-go@v3 |
18 | | - with: |
19 | | - go-version: '1.20' |
20 | 16 |
|
21 | 17 | - run: sudo apt-get install jq |
22 | 18 | if: matrix.os == 'ubuntu-latest' |
|
36 | 32 | - name: Run tests |
37 | 33 | run: | |
38 | 34 | mkdir /tmp/tigris_cli_coverdata |
39 | | - GOCOVERDIR=/tmp/tigris_cli_coverdata/ BUILD_PARAM=-cover TIGRIS_CLI_TEST_FAST=1 make test |
| 35 | + SUDO=sudo GOCOVERDIR=/tmp/tigris_cli_coverdata/ BUILD_PARAM=-cover TIGRIS_CLI_TEST_FAST=1 make test |
40 | 36 | go tool covdata textfmt -i=/tmp/tigris_cli_coverdata/ -o coverage.out |
41 | 37 |
|
42 | 38 | - name: Upload coverage reports to Codecov |
43 | 39 | uses: codecov/codecov-action@v3 |
| 40 | + |
| 41 | + # FIXME: same as above, with TIGRIS_CLI_TEST_FAST=1 removed. |
| 42 | + # Work on unifying. |
| 43 | + test-all: |
| 44 | + runs-on: ${{ matrix.os }} |
| 45 | + strategy: |
| 46 | + matrix: |
| 47 | + os: [ ubuntu-latest, macOS-latest ] |
| 48 | + steps: |
| 49 | + - name: Checkout code |
| 50 | + uses: actions/checkout@v3 |
| 51 | + |
| 52 | + - run: sudo apt-get install jq |
| 53 | + if: matrix.os == 'ubuntu-latest' |
| 54 | + |
| 55 | + - if: matrix.os == 'macOS-latest' |
| 56 | + run: | |
| 57 | + brew install jq colima docker docker-compose tree |
| 58 | + colima start |
| 59 | + mkdir -p ~/.docker/cli-plugins |
| 60 | + ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose |
| 61 | +
|
| 62 | + - run: chocolatey install jq |
| 63 | + if: matrix.os == 'windows-latest' |
| 64 | + |
| 65 | + - run: npm install -g @go-task/cli |
| 66 | + |
| 67 | + - name: Run tests |
| 68 | + run: | |
| 69 | + mkdir /tmp/tigris_cli_coverdata_all |
| 70 | + SUDO=sudo GOCOVERDIR=/tmp/tigris_cli_coverdata_all/ BUILD_PARAM=-cover make test |
| 71 | + go tool covdata textfmt -i=/tmp/tigris_cli_coverdata_all/ -o coverage.out |
| 72 | +
|
| 73 | + - name: Upload coverage reports to Codecov |
| 74 | + uses: codecov/codecov-action@v3 |
0 commit comments