diff --git a/.github/workflows/full-ci.yml b/.github/workflows/full-ci.yml index ec52ac26d..2c9738020 100644 --- a/.github/workflows/full-ci.yml +++ b/.github/workflows/full-ci.yml @@ -164,7 +164,7 @@ jobs: - name: Install dependencies run: | - brew install --overwrite go mage wget node + brew install --overwrite go mage wget node docker colima pip3 install -r test/requirements.txt - name: Install etcd @@ -190,8 +190,18 @@ jobs: run: | echo "TT_CLI_TARANTOOL_PREFIX=${GITHUB_WORKSPACE}/include/" >> $GITHUB_ENV + - name: Start colima and patch mount options + # Also we need to delete line with 'credSotre' to download docker image. + run: | + colima start --vm-type vz --mount /private/var/folders:w + sed -i '' '/"credsStore"/d' ~/.docker/config.json + + # - name: Docker build + # run: docker build -t ubuntu:tt_test cli/docker/testdata/ + - name: Run unit tests - run: mage unitfull + # run: mage -v unitfull + run: go test -C cli/docker -tags integration,integration_docker - name: Integration tests run: mage integrationfull @@ -212,6 +222,10 @@ jobs: TARANTOOL_BIN=${GITHUB_WORKSPACE}/bin/tarantool; pkill -SIGINT -f ${TARANTOOL_BIN} || true + - name: Kill colima + if: always() + run: colima delete + # ee suffix means that the job runs ee integration tests. full-ci-macOS-ee: if: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da496a362..ccd4d0e57 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -160,7 +160,7 @@ jobs: - name: Install dependencies run: | - brew install --overwrite go mage node + brew install --overwrite go mage node docker colima pip3 install -r test/requirements.txt - name: Install etcd @@ -189,6 +189,9 @@ jobs: - name: Unit tests run: mage unit + - name: Start colima and patch mount options + run: colima start --vm-type vz --mount /private/var/folders:w + - name: Run integration tests run: mage integration @@ -201,3 +204,7 @@ jobs: run: | ETCD_TT_BIN=${ETCD_PATH}etcd; pkill -SIGINT -f ${ETCD_TT_BIN} || true + + - name: Kill colima + if: always() + run: colima delete diff --git a/cli/docker/docker_integration_test.go b/cli/docker/docker_integration_test.go index 9803d2708..e077455f9 100644 --- a/cli/docker/docker_integration_test.go +++ b/cli/docker/docker_integration_test.go @@ -40,7 +40,7 @@ func TestBuildImage(t *testing.T) { require.NoError(t, err) defer dockerClient.Close() - require.NoError(t, buildDockerImage(dockerClient, "ubuntu:tt_test", "testdata", false, + require.NoError(t, buildDockerImage(dockerClient, "ubuntu:tt_test", "testdata", true, os.Stdout)) findAndRemoveBuiltImage(t, dockerClient, "ubuntu:tt_test") }