Pull Request: Add Option for Building a Specific Package #14
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: Workflows Test | |
on: | |
pull_request: | |
branches: [ master ] | |
push: | |
branches: [ master ] | |
jobs: | |
workflows-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out | |
uses: actions/checkout@v2.3.4 | |
- name: Testing the default configuration | |
uses: ./ | |
- name: Testing with different distribution | |
uses: ./ | |
with: | |
ros2-distro: rolling | |
- name: Testing with commands | |
uses: ./ | |
with: | |
pre-install: FOO=fofofo | |
post-install: test "${FOO}" = 'fofofo' | |
pre-build: curl --version && wget --version | |
post-build: cat ./LICENSE && cat ./README.md | |
pre-test: GOO=gogogo | |
post-test: test "${FOO}${GOO}" = 'fofofogogogo' | |
- name: Testing with APT and pip install | |
uses: ./ | |
with: | |
apt-packages: neofetch libopencv-dev | |
pip-packages: numpy matplotlib | |
post-install: neofetch && opencv_version && python3 -c 'import numpy; import matplotlib' | |
- name: Testing with including external repositories | |
uses: ./ | |
with: | |
ros2-distro: foxy | |
external-repos: https://github.com/ros2/example_interfaces#foxy ros2/examples#foxy |