Ar-Ray-code 2022-12-09
add ci_yml and update readme
@b3f551e3091823cebf7c6ae037facb45e4de707b
 
.github/workflows/ci_galactic.yml (added)
+++ .github/workflows/ci_galactic.yml
@@ -0,0 +1,42 @@
+name: ci_galactic
+
+on:
+  push:
+    branches:
+      - "main"
+  pull_request:
+    types: [opened, synchronize, labeled]
+
+jobs:
+  ci:
+    runs-on: ${{ matrix.os }}
+    if: |
+      ((github.event.action == 'labeled') &&
+        (github.event.label.name == 'TESTING')) ||
+      ((github.event.action == 'synchronize') &&
+        contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
+      (github.ref == 'refs/heads/main')
+    container:
+      image: osrf/ros:${{ matrix.ros_distribution }}-desktop
+    timeout-minutes: 20
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-20.04]
+        ros_distribution: [galactic]
+    steps:
+      - uses: actions/checkout@v2
+      - name: Install dependencies
+        run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result
+      - name: SSH2HTTPS
+        run: sed -e 's/git@github.com:/https:\/\/github.com\//g' mg400.repos > tmp.repos
+      - name: Build and Test
+        uses: ros-tooling/action-ros-ci@v0.2
+        with:
+          target-ros2-distro: ${{ matrix.ros_distribution }}
+          import-token: ${{ secrets.GITHUB_TOKEN }}
+          package-name: |
+            p9n_interface
+            p9n_example
+            p9n_test
+          vcs-repo-file-url: tmp.repos(파일 끝에 줄바꿈 문자 없음)
 
.github/workflows/ci_humble.yml (added)
+++ .github/workflows/ci_humble.yml
@@ -0,0 +1,42 @@
+name: ci_humble
+
+on:
+  push:
+    branches:
+      - "main"
+  pull_request:
+    types: [opened, synchronize, labeled]
+
+jobs:
+  ci:
+    runs-on: ${{ matrix.os }}
+    if: |
+      ((github.event.action == 'labeled') &&
+        (github.event.label.name == 'TESTING')) ||
+      ((github.event.action == 'synchronize') &&
+        contains(github.event.pull_request.labels.*.name, 'TESTING')) ||
+      (github.ref == 'refs/heads/main')
+    container:
+      image: osrf/ros:${{ matrix.ros_distribution }}-desktop
+    timeout-minutes: 20
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ubuntu-22.04]
+        ros_distribution: [humble]
+    steps:
+      - uses: actions/checkout@v2
+      - name: Install dependencies
+        run: sudo apt-get update && sudo apt-get install -y wget python3-vcstool python3-colcon-coveragepy-result
+      - name: SSH2HTTPS
+        run: sed -e 's/git@github.com:/https:\/\/github.com\//g' mg400.repos > tmp.repos
+      - name: Build and Test
+        uses: ros-tooling/action-ros-ci@v0.2
+        with:
+          target-ros2-distro: ${{ matrix.ros_distribution }}
+          import-token: ${{ secrets.GITHUB_TOKEN }}
+          package-name: |
+            p9n_interface
+            p9n_example
+            p9n_test
+          vcs-repo-file-url: tmp.repos(파일 끝에 줄바꿈 문자 없음)
 
.github/workflows/lint.yml (deleted)
--- .github/workflows/lint.yml
@@ -1,58 +0,0 @@
-name: lint
-
-on:
-  pull_request:
-    paths-ignore:
-      - "docs/**"
-      - "**.md"
-
-jobs:
-  ament_lint_general:
-    runs-on: ${{ matrix.os }}
-    container:
-      image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-20.04]
-        ros_distribution: [galactic]
-        linter: [copyright, xmllint]
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ros-tooling/setup-ros@v0.2
-        with:
-          required-ros-distributions: ${{ matrix.ros_distribution }}
-      - name: Linter
-        uses: ros-tooling/action-ros-lint@v0.1
-        with:
-          distribution: ${{ matrix.ros_distribution }}
-          linter: ${{ matrix.linter }}
-          package-name: |
-            p9n_interface
-            p9n_example
-            p9n_test
-
-  ament_lint_python:
-    runs-on: ${{ matrix.os }}
-    container:
-      image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-20.04]
-        ros_distribution: [galactic]
-        linter: [pep257, flake8]
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ros-tooling/setup-ros@v0.2
-        with:
-          required-ros-distributions: ${{ matrix.ros_distribution }}
-      - name: Linter
-        uses: ros-tooling/action-ros-lint@v0.1
-        with:
-          distribution: ${{ matrix.ros_distribution }}
-          linter: ${{ matrix.linter }}
-          package-name: |
-            p9n_interface
-            p9n_example
-            p9n_test
README.md
--- README.md
+++ README.md
@@ -12,6 +12,13 @@
 | :heavy_check_mark: | `DualShock4`  |
 | :heavy_check_mark: | `DualSense`   |
 
+## Repository Status
+
+| ROS2 Distro | Branch | Build status |
+| --- | --- | --- |
+| **galactic** | [`galactic`](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/tree/galactic) | [![Galactic CI](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_galactic.yml/badge.svg?branch=main)](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_galactic.yml?branch=main)
+| **humble** | [`humble`](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/tree/humble) | [![Humble CI](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_humble.yml/badge.svg?branch=main)](https://github.com/HarvestX/PlayStation-JoyInterface-ROS2/actions/workflows/ci_humble.yml?branch=humble)
+
 
 ## How to use the interface library
 1. Initialize controller interface with the specific hardware type.
Add a comment
List