Skip to content

Commit

Permalink
add build job
Browse files Browse the repository at this point in the history
Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
  • Loading branch information
KeisukeShima committed Feb 10, 2022
1 parent ed6a3eb commit 11a243d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build-and-test

on:
push:
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
container: ros:galactic
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Get self packages
id: get-self-packages
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal

- name: Build and test
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
with:
rosdistro: galactic
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}

- name: Check the existence of coverage files
id: check-file-existence
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal
with:
files: |
lcov/total_coverage.info
coveragepy/.coverage
condition: or

- name: Upload coverage to CodeCov
if: ${{ steps.check-file-existence.outputs.exists == 'true' }}
uses: codecov/codecov-action@v2
with:
files: lcov/total_coverage.info,coveragepy/.coverage
fail_ci_if_error: false
verbose: true

0 comments on commit 11a243d

Please sign in to comment.