WIP: Add an option for retrying conflict errors #137
This file contains 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
name: ubuntu-master | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- AUTHORS | |
- README.md | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- AUTHORS | |
- README.md | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- scala: "2.11.12" | |
tarantool: "2.11" | |
router_port: "3301" | |
router_api_port: "8081" | |
- scala: "2.12.16" | |
tarantool: "2.11" | |
router_port: "3331" | |
router_api_port: "8381" | |
- scala: "2.13.10" | |
tarantool: "2.11" | |
router_port: "3361" | |
router_api_port: "8681" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "[email protected]" | |
- name: Cache docker images | |
uses: satackey/[email protected] | |
continue-on-error: true | |
with: | |
key: ${{ runner.os }}-docker-layer-cache-${{ matrix.tarantool }} | |
restore-keys: | | |
${{ runner.os }}-docker-layer-cache- | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ matrix.scala }}-${{ hashFiles('**/build.sbt') }} | |
- name: Run tests | |
env: | |
TARANTOOL_VERSION: ${{ matrix.tarantool }} | |
TARANTOOL_SERVER_USER: root | |
TARANTOOL_SERVER_GROUP: root | |
TARANTOOL_CLUSTER_COOKIE: testapp-cluster-cookie-${{ matrix.scala }}-${{ matrix.tarantool }} | |
TARANTOOL_INSTANCES_FILE: 'instances_${{ matrix.scala }}_${{ matrix.tarantool }}.yml' | |
TARANTOOL_TOPOLOGY_FILE: 'cartridge/topology_${{ matrix.scala }}_${{ matrix.tarantool }}.lua' | |
TARANTOOL_ROUTER_PORT: ${{ matrix.router_port }} | |
TARANTOOL_ROUTER_API_PORT: ${{ matrix.router_api_port }} | |
run: sbt ++${{ matrix.scala }}! test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: false | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
scala: | |
- "2.11.12" | |
- "2.12.16" | |
- "2.13.10" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: "[email protected]" | |
- name: Cache SBT | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ matrix.scala }}-${{ hashFiles('**/build.sbt') }} | |
- name: Check formatting | |
run: sbt ++${{ matrix.scala }}! scalafmtSbtCheck scalafmtCheck test:scalafmtCheck |