Skip to content

Commit

Permalink
CI: run on #verification #docs #sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Feb 6, 2024
1 parent b4eb56a commit 066c4be
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/cetlvast.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: "CETLVaSt"

on:
push:
branches: [ "main" ]
push: # Further filtering is done in the jobs.
pull_request:
branches: [ "main" ]
release:
Expand All @@ -11,6 +10,10 @@ on:

jobs:
verification:
if: >
contains(github.event.head_commit.message, '#verification') ||
contains(github.ref, '/main') ||
(github.event_name == 'pull_request')
runs-on: ubuntu-latest
container: ghcr.io/opencyphal/toolshed:ts22.4.3
strategy:
Expand Down Expand Up @@ -64,7 +67,12 @@ jobs:
build/*/**/*-sonarqube.xml
build/*/**/gcovr_html/*.*
if-no-files-found: error

docs:
if: >
contains(github.event.head_commit.message, '#docs') ||
contains(github.ref, '/main') ||
(github.event_name == 'pull_request')
runs-on: ubuntu-latest
container: ghcr.io/opencyphal/toolshed:ts22.4.3
steps:
Expand Down Expand Up @@ -101,7 +109,12 @@ jobs:
name: pr-docs
path: "build/suites/docs/html/"
if-no-files-found: error

sonarqube:
if: >
contains(github.event.head_commit.message, '#sonar') ||
contains(github.ref, '/main') ||
(github.event_name == 'pull_request')
needs:
- verification
- docs
Expand Down

0 comments on commit 066c4be

Please sign in to comment.