Skip to content

Commit 3de97ca

Browse files
committed
Add CI workflow
1 parent 8f5d9b3 commit 3de97ca

5 files changed

Lines changed: 112 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
documentation:
2+
- head-branch: "^docs/"
3+
chore:
4+
- head-branch: "^chore/"
5+
bug:
6+
- head-branch: "^fix/"
7+
enhancement:
8+
- head-branch: "^feature/"
9+
refactor:
10+
- head-branch: "^refactor/"

.github/release-drafter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name-template: "v$RESOLVED_VERSION 🌈"
2+
tag-template: "$RESOLVED_VERSION"
3+
categories:
4+
- title: "🚨 Breaking Changes"
5+
label:
6+
- "breaking_change"
7+
- "breaking"
8+
- title: "🚀 Features"
9+
labels:
10+
- "feature"
11+
- "enhancement"
12+
- title: "🐛 Bug Fixes"
13+
labels:
14+
- "fix"
15+
- "bugfix"
16+
- "bug"
17+
- title: "🧰 Maintenance"
18+
label: "chore"
19+
- title: "🔨 Refactor"
20+
label: "refactor"
21+
- title: "📚 Documentation"
22+
label:
23+
- "documentation"
24+
- "docs"
25+
26+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
27+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
28+
version-resolver:
29+
major:
30+
labels:
31+
- "major"
32+
minor:
33+
labels:
34+
- "minor"
35+
patch:
36+
labels:
37+
- "patch"
38+
default: patch
39+
template: |
40+
## Changes
41+
42+
$CHANGES

.github/workflows/pr_labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: pr_labeler
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
jobs:
8+
pr_labeler:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: PR Labeler
12+
uses: actions/labeler@v5

.github/workflows/pr_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: pr_test
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build_and_test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
target-ros2-distro: [humble, jazzy, rolling]
18+
container:
19+
image: ros:${{ matrix.target-ros2-distro }}-ros-core
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Build and test
27+
uses: ros-tooling/action-ros-ci@v0.4
28+
with:
29+
package-name: parameter_expression
30+
target-ros2-distro: ${{ matrix.target-ros2-distro }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update_release_draft:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: release-drafter/release-drafter@v5
16+
id: release-drafter
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)