-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add integration test github workflow action (#453)
* feat: add integrationn test github workflow action Signed-off-by: Jim Wang <[email protected]> * fix: fix the file path for bit model Signed-off-by: Jim Wang <[email protected]> * fix: move the chown permission .docker/buildx folder to smoke tests Signed-off-by: Jim Wang <[email protected]> fix: remove -i from docker run for github action runner Signed-off-by: Jim Wang <[email protected]> * fix: remove unnecessary -i or -t -or -it flag from docker run for headless github action runner to work Signed-off-by: Jim Wang <[email protected]> * fix: clean up and add --rm back for video downloading Signed-off-by: Jim Wang <[email protected]> * fix: add clean-up build folder before run checkout action Signed-off-by: Jim Wang <[email protected]> * fix: use sudo for deletion Signed-off-by: Jim Wang <[email protected]> * fix: switch to run on crob job schedule Signed-off-by: Jim Wang <[email protected]> --------- Signed-off-by: Jim Wang <[email protected]>
- Loading branch information
1 parent
27b858d
commit 398f68c
Showing
7 changed files
with
40 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,33 @@ | ||
name: Integration Tests | ||
|
||
on: workflow_dispatch | ||
# Runs on every pr pushed | ||
# on: | ||
# push: | ||
# branches: [ "main" ] | ||
# pull_request: | ||
# # The branches below must be a subset of the branches above | ||
# branches: [ "main" ] | ||
|
||
# Runs on schedule at 9am UTC, Monday to Friday everyday | ||
on: | ||
schedule: | ||
- cron: '0 9 * * 1-5' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_OVMS_Profile_Launcher: | ||
runs-on: [self-hosted, linux, x64, arc, integration] | ||
run_integration_tests: | ||
runs-on: [self-hosted, linux, x64] | ||
steps: | ||
- name: Cleanup repo build folder | ||
run: | | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Build ovms profile launcher | ||
- name: run integration tests | ||
run: | | ||
make build-profile-launcher | ||
make run-smoke-tests |
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
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
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