Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow update - tests, checks #60

Merged
merged 32 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
035b0e7
Create industrial_ci_action.yml
delihus Jul 14, 2023
96e2455
Update industrial_ci_action.yml
delihus Jul 14, 2023
0955427
Update README.md
delihus Jul 31, 2023
bbfcc24
Update industrial_ci_action.yml
delihus Jul 31, 2023
4eb9050
pre-requirements
delihus Jul 31, 2023
9ec9a6c
pre-requirements
delihus Jul 31, 2023
f25468c
pre-requirements
delihus Jul 31, 2023
dcefa82
pre-requirements
delihus Jul 31, 2023
e017c1a
pre-requirements
delihus Jul 31, 2023
533e54d
pre-requirements
delihus Jul 31, 2023
5e7e771
pre-requirements
delihus Jul 31, 2023
082ffb4
pre-requirements
delihus Jul 31, 2023
fa6e90c
pre-requirements
delihus Jul 31, 2023
1f772bc
pre-requirements
delihus Jul 31, 2023
a387ff8
pre-requirements
delihus Jul 31, 2023
08b44f3
pre-requirements
delihus Jul 31, 2023
58fdb32
pre-requirements
delihus Jul 31, 2023
b881ea6
pre-requirements
delihus Jul 31, 2023
19ee331
pre-requirements
delihus Jul 31, 2023
986f5a9
pre-requirements
delihus Jul 31, 2023
ca1e5fb
pre-requirements
delihus Aug 1, 2023
51f5cba
pre-requirements
delihus Aug 1, 2023
10861ac
Merge pull request #3 from delihus/delihus-patch-1
delihus Aug 1, 2023
0331803
pre-requirements
delihus Aug 1, 2023
59a22bb
Merge remote-tracking branch 'origin/humble' into humble
delihus Aug 1, 2023
284fe59
pre-requirements
delihus Aug 1, 2023
90e2676
pre-requirements
delihus Aug 1, 2023
6f8fe7d
pre-requirements
delihus Aug 1, 2023
1a595a9
pre-requirements
delihus Aug 1, 2023
ed7e960
pre-requirements
delihus Aug 1, 2023
8890780
pre-requirements
delihus Aug 1, 2023
5add5ed
removed bumping | added template
delihus Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# TODO: specify bump command and remove this description

Bump version workflow is triggered when PR is closed, it bumps version and triggers docker build that will be tagged with version number. To use it you have to specify bump type, available commands: `bump::patch`, `bump::minor` and `bump::major` (simply leave one of them in PR description and remove this description).
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:

jobs:
get-bump:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
name: Get version bump
runs-on: ubuntu-22.04
outputs:
Expand All @@ -28,6 +29,7 @@ jobs:
run: echo "BUMP=${{ github.event.inputs.name }}" >> $GITHUB_ENV

catkin-release:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
name: Bump version
runs-on: ubuntu-22.04
needs: get-bump
Expand All @@ -48,6 +50,7 @@ jobs:
git_email: [email protected]

build-and-push-docker-image:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
name: Create new docker image
runs-on: ubuntu-22.04
needs: catkin-release
Expand All @@ -58,4 +61,4 @@ jobs:
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer ${{ secrets.GH_PAT }}"
https://api.github.com/repos/husarion/rosbot-docker/dispatches
-d '{"event_type":"ros-package-update"}'
-d '{"event_type":"ros-package-update"}'
25 changes: 25 additions & 0 deletions .github/workflows/industrial_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Industrial CI
on:
workflow_call:
pull_request:
push:
branches:
- humble

jobs:
industrial_ci:
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone installation requirements
shell: bash
run : python3 -m pip install -U vcstool &&
vcs import . < ./rosbot/rosbot_hardware.repos &&
vcs import . < ./rosbot/rosbot_simulation.repos
- uses: ros-industrial/industrial_ci@master
env:
ROS_DISTRO: ${{matrix.ROS_DISTRO}}
Loading