Skip to content

[POP-2916] Change intra_batch_rule to AND #3121

[POP-2916] Change intra_batch_rule to AND

[POP-2916] Change intra_batch_rule to AND #3121

name: CPU Integration Tests
on:
pull_request:
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
env:
REGISTRY: ghcr.io
jobs:
cpu-integration-tests:
timeout-minutes: 20
runs-on:
labels: ubuntu-22.04-16core
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Get all test, doc and src files that have changed
id: changed-files-yaml
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62
with:
files_yaml: |
src:
- Dockerfile*
- Cargo.lock
- Cargo.toml
- deny.toml
- rust-toolchain.toml
- iris-*/**
- migrations/**
- scripts/**
- .github/workflows/cpu-integration-tests.yaml
- name: Cache Rust build
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809
id: cache-rust
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: rust-build-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
rust-build-${{ runner.os }}-
- name: Set up QEMU
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
- name: Set up Docker Buildx
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
- name: Log in to the Container registry
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and export to Docker
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: Dockerfile.dev.hawk
platforms: linux/amd64
load: true
tags: hawk-server-local-build:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run docker compose
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
uses: hoverkraft-tech/compose-action@40041ff1b97dbf152cd2361138c2b03fa29139df
with:
compose-file: "./docker-compose.test.yaml"
- name: Execute tests in the running services
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
run: |
docker compose -f docker-compose.test.yaml exec iris_mpc_client "./run-client-docker.sh"