diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d8c19c..5ec44dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,12 @@ jobs: build: needs: build_dev_container uses: ./.github/workflows/ci_build.yml - test: + unit_test: needs: build_dev_container - uses: ./.github/workflows/ci_test.yml + uses: ./.github/workflows/ci_unit_test.yml + integration_test: + needs: build_dev_container + uses: ./.github/workflows/ci_integration_test.yml lint: needs: build_dev_container uses: ./.github/workflows/ci_lint.yml diff --git a/.github/workflows/ci_integration_test.yml b/.github/workflows/ci_integration_test.yml new file mode 100644 index 0000000..970c048 --- /dev/null +++ b/.github/workflows/ci_integration_test.yml @@ -0,0 +1,21 @@ +name: CI Integration Test +'on': + workflow_call: null +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout (GitHub) + uses: actions/checkout@v4 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Cargo integration tests + uses: devcontainers/ci@v0.3 + with: + cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev + runCmd: cargo test --test '*' --verbose -- --test-threads=1 + push: never diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_unit_test.yml similarity index 84% rename from .github/workflows/ci_test.yml rename to .github/workflows/ci_unit_test.yml index 384221e..d989814 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_unit_test.yml @@ -1,4 +1,4 @@ -name: CI Test +name: CI Unit Test 'on': workflow_call: null jobs: @@ -13,9 +13,9 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Cargo test + - name: Cargo unit tests uses: devcontainers/ci@v0.3 with: cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev - runCmd: cargo test --verbose + runCmd: cargo test --bins --verbose push: never