Skip to content

These actions are commonly used steps in STOL's GitHub workflows

Notifications You must be signed in to change notification settings

usdot-fhwa-stol/actions

Repository files navigation

STOL GitHub Actions

These actions are commonly used steps in STOL's GitHub workflows.

add-stol-apt-repository

Add STOL apt repository to /etc/apt/sources.list.d.

See action.yml.

build-cpp-library

Build a typical STOL C++ library using the library's build.sh script. Can pass in suffix info for Debian package name.

See action.yml.

setup-deb-s3

Setup deb-s3 and optionally install minimal helpful tools for building Debian/Ubuntu packages.

See action.yml.

sonar-scanner

Run SonarScanner.

To use ensure the following steps have been taken:

  • The Sonar project has been created under https://sonarcloud.io/organizations/usdot-fhwa-stol/projects.
  • The Sonar project has been set to give Administer Issues privileges to the Issue Administrators group. This allows developers to mark issues as false postive or won't fix as necessary because the scanner is not perfect.

See action.yml.

STOL Reusable Workflows

There are resuable workflows included in this repository.

cpp-module-build

Run a C++ build for STOL projects using the carma-builds Docker container. Includes git revision info in the Debian package name for non-tag builds.

See cpp-module-build.yml.

git-revision-info

Get the git revision info string for a repository and store it in the output git-revision-info.

See git-revision-info.yml.

sonar-scanner-cpp

Run Sonar Scan for C++ projects for STOL projects

To use ensure the following steps have been taken:

  • The steps above for the sonar-scanner action have been completed.
  • The token from the Sonar project has been added to the target repository under Settings -> Secrets and Variables -> Actions as SONAR_TOKEN in the "Repository secrets" section.

See sonar-scanner-cpp.yml.