Skip to content

Commit

Permalink
Move out docker migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed May 3, 2024
1 parent 81c439c commit daae1df
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,36 @@ jobs:
if: always()
run: docker compose down

migration-test:
name: Migration test
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# See comment here: https://github.com/actions/runner-images/issues/1187#issuecomment-686735760
- name: Disable network offload
run: sudo ethtool -K eth0 tx off rx off

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Test migrations
run: ./docker/ci/test_migrations.sh
env:
BUILD_CACHE_FROM: type=gha,scope=buildkit-${{ github.run_id }}
BUILD_BASE_IMAGE: ${{ needs.build.outputs.baseimage }}

push:
name: Push circ-${{ matrix.image }}
runs-on: ubuntu-latest
needs: [build, integration-test, unit-test]
needs: [build, integration-test, unit-test, migration-test]
permissions:
contents: read
packages: write
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,3 @@ jobs:
flags: migration
name: "migration-3.10"
verbose: true

docker-test-migrations:
name: Docker migration test
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# See comment here: https://github.com/actions/runner-images/issues/1187#issuecomment-686735760
- name: Disable network offload
run: sudo ethtool -K eth0 tx off rx off

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Test migrations
run: ./docker/ci/test_migrations.sh

0 comments on commit daae1df

Please sign in to comment.