-
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.
Add github action for robot framework tests
- Loading branch information
1 parent
e659e18
commit 3d2dfa9
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Integration Tests | ||
|
||
on: [push] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RENODE_CI_MODE: YES | ||
|
||
jobs: | ||
robo_tests: | ||
name: Roboot Framework Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install renode | ||
run: | | ||
cd /opt | ||
sudo wget --quiet --output-document renode.tar.gz https://builds.renode.io/renode-1.14.0+20231008gitebcb1b6b.linux-portable.tar.gz | ||
sudo mkdir renode | ||
sudo tar xf renode.tar.gz -C renode --strip-components 1 | ||
sudo pip install -r /opt/renode/tests/requirements.txt | ||
echo "PATH=/opt/renode:${PATH}" >> $GITHUB_ENV | ||
- name: Print renode version | ||
run: renode --version | ||
|
||
- name: Install toolchain and components | ||
run: rustup component add rustfmt clippy llvm-tools-preview | ||
|
||
- name: Install binutils, flip-link | ||
run: cargo install cargo-binutils flip-link | ||
|
||
- name: Build bootloader | ||
working-directory: bootloader | ||
run: cargo build --release | ||
|
||
- name: Build firmware | ||
working-directory: firmware | ||
run: cargo build --release | ||
|
||
- name: Build CLI | ||
working-directory: host_tools/air-gradient-cli | ||
run: cargo build --release --all-features | ||
|
||
- name: Run tests | ||
run: renode-test agp.robot |