-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Separate unit and integration tests
also run the unit test in sequence for now because they share the same test resources e.g ports or ros topics.
- Loading branch information
1 parent
4a5ec32
commit 5d340a8
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
with: | ||
cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev | ||
runCmd: cargo test --test '*' --verbose -- --test-threads=1 | ||
push: never |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
with: | ||
cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev | ||
runCmd: cargo test --verbose | ||
runCmd: cargo test --bins --verbose | ||
push: never |