Add savepoints for parquet migration #325
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**.scala' | |
| - '**.sbt' | |
| pull_request: | |
| paths: | |
| - '**.scala' | |
| - '**.sbt' | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Cache Docker images | |
| uses: ScribeMD/docker-cache@0.5.0 | |
| with: | |
| key: docker-${{ runner.os }}-${{ hashFiles('docker-compose-tests.yml') }} | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: 8 | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - name: Build migrator | |
| run: ./build.sh | |
| - name: Set up services | |
| run: | | |
| sudo chmod -R 777 ./tests/docker/scylla ./tests/docker/scylla-source | |
| docker compose -f docker-compose-tests.yml up -d | |
| .github/wait-for-port.sh 8000 # ScyllaDB Alternator | |
| .github/wait-for-port.sh 8001 # DynamoDB | |
| .github/wait-for-port.sh 4566 # S3 | |
| .github/wait-for-cql.sh scylla | |
| .github/wait-for-cql.sh cassandra | |
| .github/wait-for-cql.sh scylla-source | |
| .github/wait-for-port.sh 8080 # Spark master | |
| .github/wait-for-port.sh 8081 # Spark worker | |
| - name: Run tests locally | |
| run: sbt "testOnly -- --exclude-categories=com.scylladb.migrator.AWS" | |
| - name: Stop services | |
| run: docker compose -f docker-compose-tests.yml down |