diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9746b5bf..d38d0832 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -39,10 +39,30 @@ jobs: git diff --quiet pytest: - runs-on: iroha-ubuntu-latest - container: rust:1.65-buster + runs-on: [self-hosted, Linux, iroha2] + timeout-minutes: 60 steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 + with: + install: true + - name: Build and Tag Docker Images + uses: docker/build-push-action@v6 + if: always() + with: + context: . + load: true + file: Dockerfile + tags: | + hyperledger/iroha:local + hyperledger/iroha:dev + cache-from: type=gha + cache-to: type=gha,mode=max + - name: Run docker-compose.yml containers + run: docker compose -f ${{ env.DOCKER_COMPOSE_PATH }}/docker-compose.yml up --wait || exit 1 - name: Install dependencies run: | apt-get update