2021-11-10 21:18:09 -05:00
|
|
|
name: Multi-site replication tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-11-30 02:35:07 -05:00
|
|
|
- master
|
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
|
2021-11-10 21:18:09 -05:00
|
|
|
|
|
|
|
# This ensures that previous jobs for the PR are canceled when the PR is
|
|
|
|
# updated.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
replication-test:
|
2021-11-30 02:35:07 -05:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-11-10 21:18:09 -05:00
|
|
|
name: Replication Tests with Go ${{ matrix.go-version }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-11-19 19:18:23 -05:00
|
|
|
go-version: [1.17.x]
|
2021-11-10 21:18:09 -05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2021-11-19 19:18:23 -05:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-${{ matrix.go-version }}-go-
|
2021-11-10 21:18:09 -05:00
|
|
|
- name: Test Replication
|
|
|
|
run: |
|
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sudo sysctl net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
go install -v github.com/minio/mc@latest
|
|
|
|
make test-replication
|