[#71286] Temporarily disable cache #128
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
name: Test action | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
renode_revision: | |
description: 'Renode git revision' | |
required: false | |
default: '' | |
renode_repository: | |
description: 'Renode git repository' | |
required: false | |
default: '' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-13] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Renode | |
uses: ./ | |
with: | |
renode-revision: ${{ inputs.renode_revision || 'master' }} | |
renode-repository: ${{ inputs.renode_repository || 'https://github.com/renode/renode' }} | |
- name: Verify if Renode is persistent | |
run: renode --version | grep "Renode v" || exit 1 | |
shell: bash | |
- name: Run sample test | |
uses: ./ | |
with: | |
tests-to-run: __tests__/hello_world.robot | |
renode-revision: ${{ inputs.renode_revision || 'master' }} | |
renode-repository: ${{ inputs.renode_repository || 'https://github.com/renode/renode' }} | |
- name: Run sample test with metrics visualization | |
uses: ./ | |
with: | |
tests-to-run: __tests__/profiling.robot | |
artifacts-path: metrics | |
gather-execution-metrics: yes | |
renode-revision: ${{ inputs.renode_revision || 'master' }} | |
renode-repository: ${{ inputs.renode_repository || 'https://github.com/renode/renode' }} | |
- name: Upload results with metrics | |
uses: actions/upload-artifact@v4 | |
with: | |
name: metrics-${{ runner.os }}-${{ github.run_id }} | |
path: metrics/* | |
- name: Verify that renode-test also works under CMD/PowerShell on Windows | |
run: renode-test __tests__/hello_world.robot | |
shell: cmd | |
if: ${{ runner.os == 'Windows' }} |