Migrate to ROS 2 #311
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: Top-level PR workflow | |
on: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
pyflakes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: pyflakes | |
uses: jrbaxter0/action-pyflakes@patch-1 | |
with: | |
github_token: ${{ secrets.github_token }} | |
changes: | |
name: Check for changes to files in docker directory | |
runs-on: ubuntu-latest | |
outputs: | |
docker: ${{ steps.changes.outputs.docker }} | |
steps: | |
- id: changes | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
docker: ['docker/**'] | |
docker: | |
name: Rebuild Docker image and push to PR tag | |
needs: changes | |
if: needs.changes.outputs.docker == 'true' | |
uses: purdue-arc/rocket_league/.github/workflows/docker-build-push.yml@main | |
with: | |
tag: ${{ github.event.number }} | |
secrets: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
catkin_tag: | |
name: Catkin build and test using PR tagged Docker image | |
needs: [changes, docker] | |
if: needs.changes.outputs.docker == 'true' | |
uses: purdue-arc/rocket_league/.github/workflows/catkin-build-test.yml@main | |
with: | |
tag: ${{ github.event.number }} | |
catkin_latest: | |
name: Catkin build and test using latest Docker image | |
needs: changes | |
if: needs.changes.outputs.docker == 'false' | |
uses: purdue-arc/rocket_league/.github/workflows/catkin-build-test.yml@main |