11name : Run setup and colcon build for Dev
22on : push
3+
34jobs :
5+
46 setup_and_build_check :
57 runs-on : ubuntu-22.04
68 steps :
7- - uses : actions/checkout@v4
8- - name : enviroment setupg
9- run : |
10- export ROVERFLAKE_ROOT="${GITHUB_WORKSPACE}"
11- yes | ./setup_scripts/setup_everything_common.sh
12- - name : build
13- run : |
14- cd $ROVERFLAKE_ROOT
15- echo $ROS_DISTRO
16- source /opt/ros/humble/setup.bash
17- echo $ROS_DISTRO
18- colcon build --symlink-install --packages-skip sweeppy
19- - uses : actions/upload-artifact@v4
20- with :
21- name : rover_ws
22- path : install/
9+ - uses : actions/checkout@v4
10+
11+ - name : enviroment setupg
12+ run : |
13+ export ROVERFLAKE_ROOT="${GITHUB_WORKSPACE}"
14+ yes | ./setup_scripts/setup_everything_common.sh
15+
16+ - name : build
17+ run : |
18+ cd $ROVERFLAKE_ROOT
19+ echo $ROS_DISTRO
20+ source /opt/ros/humble/setup.bash
21+ echo $ROS_DISTRO
22+ colcon build --symlink-install --packages-skip sweeppy
23+
24+ - uses : actions/upload-artifact@v4
25+ with :
26+ name : rover_ws
27+ path : install/
28+
29+ - name : Notify Discord (success)
30+ if : ${{ success() }}
31+ 32+ with :
33+ webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }}
34+ webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }}
35+ message : |
36+ *I'm happy now and I'll let you merge ${{ github.actor }}. _good job!_* || ${{ github.repository }} on `${{ github.ref_name }}`
37+ ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
38+
39+ - name : Notify Discord (failure)
40+ if : ${{ failure() }}
41+ 42+ with :
43+ webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }}
44+ webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }}
45+ message : |
46+ _you have saddened me ${{ github.actor }}_
47+ ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
2348
24- - name : Notify Discord (success)
25- if : ${{ success() }}
26- 27- with :
28- webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }} # it also accepts full URL
29- webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }} # it also accepts full URL
30- message : |
31- *I'm happy now and I'll let you merge ${{ github.actor }}. _good job!_* || ${{ github.repository }} on `${{ github.ref_name }}`
32- ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
33- - name : Notify Discord (failure)
34- if : ${{ failure() }}
35- 36- with :
37- webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }} # it also accepts full URL
38- webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }} # it also accepts full URL
39- message : |
40- _you have saddened me ${{ github.actor }}_
41- ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
4249 integration_tests :
4350 runs-on : ubuntu-22.04
4451 needs : setup_and_build_check
4552 steps :
46- - uses : actions/checkout@v4
47- - uses : actions/download-artifact@v4
48- with :
49- name : rover_ws
50- path : install/
51- - name : run integration tests
52- run : |
53- source install/setup.bash
54- colcon test --packages-select integration_tests
55- colcon test-result --verbose
56- - name : Notify Discord (failure)
57- if : ${{ failure() }}
58- 59- with :
60- webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }} # it also accepts full URL
61- webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }} # it also accepts full URL
62- message : |
63- _Unit tests have failed ${{ github.actor }}_
64- ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
65- @rowan Check for integration misshaps
53+ - uses : actions/checkout@v4
54+
55+ - uses : actions/download-artifact@v4
56+ with :
57+ name : rover_ws
58+ path : install/
59+
60+ - name : run integration tests
61+ run : |
62+ source install/setup.bash
63+ colcon test --packages-select integration_tests
64+ colcon test-result --verbose
65+
66+ - name : Notify Discord (failure)
67+ if : ${{ failure() }}
68+ 69+ with :
70+ webhook_id : ${{ secrets.DISCORD_BOT_WEBHOOK_ID }}
71+ webhook_token : ${{ secrets.DISCORD_BOT_WEBHOOK_TOKEN }}
72+ message : |
73+ _Unit tests have failed ${{ github.actor }}_
74+ ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
75+ @rowan Check for integration misshaps
0 commit comments