github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/.github/workflows/compatible_test.yml (about) 1 name: compatibility-test 2 3 on: 4 push: 5 branches: 6 - master 7 - 'release-[0-9].[0-9]*' 8 paths-ignore: 9 - '**.html' 10 - '**.md' 11 - 'CNAME' 12 - 'LICENSE' 13 - 'docs/**' 14 - 'tests/**' 15 - 'docker/**' 16 - '.github/workflows/**.yml' 17 pull_request: 18 branches: 19 - master 20 - 'release-[0-9].[0-9]*' 21 paths-ignore: 22 - '**.html' 23 - '**.md' 24 - 'CNAME' 25 - 'LICENSE' 26 - 'docs/**' 27 - 'tests/**' 28 - 'docker/**' 29 - '.github/workflows/**.yml' 30 31 jobs: 32 build: 33 runs-on: ubuntu-latest 34 timeout-minutes: 25 35 steps: 36 37 - name: Free disk space 38 run: | 39 sudo rm -rf /usr/local/lib/android 40 sudo rm -rf /usr/share/dotnet 41 docker volume prune -f 42 docker image prune -f 43 44 - uses: actions/checkout@v2 45 46 - name: Set up Go 47 uses: actions/setup-go@v2 48 with: 49 go-version: 1.16 50 51 - name: Generate compatibility test backup data 52 timeout-minutes: 15 53 run: sh compatibility/prepare_backup.sh 54 55 - name: Start server 56 run: | 57 TAG=nightly PORT_SUFFIX=1 docker-compose -f compatibility/backup_cluster.yaml rm -s -v 58 TAG=nightly PORT_SUFFIX=1 docker-compose -f compatibility/backup_cluster.yaml build 59 TAG=nightly PORT_SUFFIX=1 docker-compose -f compatibility/backup_cluster.yaml up --remove-orphans -d 60 TAG=nightly PORT_SUFFIX=1 docker-compose -f compatibility/backup_cluster.yaml exec -T control make compatibility_test 61 62 - name: Collect component log 63 if: ${{ failure() }} 64 run: | 65 tar czvf ${{ github.workspace }}/logs.tar.gz /tmp/br/docker/backup_logs/* 66 67 - uses: actions/upload-artifact@v2 68 if: ${{ failure() }} 69 with: 70 name: logs 71 path: ${{ github.workspace }}/logs.tar.gz