diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a220732..2229b5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,3 +41,17 @@ jobs: else echo "Tarantool version is $T, as expected" fi + + test-concurrency: + strategy: + fail-fast: false + matrix: + runs-on: [ubuntu-20.04, ubuntu-20.04, ubuntu-20.04] + runs-on: ${{ matrix.runs-on }} + steps: + - uses: actions/checkout@v2 + - name: Setup Tarantool + uses: ./ + with: + tarantool-version: '1.10' + cache-key: test-concurrency-${{ github.run_id }} diff --git a/dist/main/index.js b/dist/main/index.js index e6e4908..0751e2c 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -3472,8 +3472,14 @@ async function run_linux() { await io.cp(f, dest); } } - await cache.saveCache([cache_dir], cache_key); - core.info(`Cache saved with key: ${cache_key}`); + try { + await cache.saveCache([cache_dir], cache_key); + core.info(`Cache saved with key: ${cache_key}`); + } + catch (error) { + core.warning(error.message); + core.warning(`Saving cache failed, but it's not crucial`); + } await io.rmRF(cache_dir); } catch (error) { diff --git a/src/main.ts b/src/main.ts index feed0c7..eb4e12d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -107,8 +107,14 @@ async function run_linux(): Promise { } } - await cache.saveCache([cache_dir], cache_key) - core.info(`Cache saved with key: ${cache_key}`) + try { + await cache.saveCache([cache_dir], cache_key) + core.info(`Cache saved with key: ${cache_key}`) + } catch (error) { + core.warning(error.message) + core.warning(`Saving cache failed, but it's not crucial`) + } + await io.rmRF(cache_dir) } catch (error) { core.setFailed(error.message)