mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
CI: run GCC unit test job on push to main
Allows to get coverage data on coveralls.io
This commit is contained in:
committed by
Evgeny Vereshchagin
parent
41a978fdb1
commit
c1036042f5
7
.github/workflows/unit_tests.yml
vendored
7
.github/workflows/unit_tests.yml
vendored
@@ -3,6 +3,10 @@
|
||||
#
|
||||
name: Unit tests
|
||||
on:
|
||||
# On push/merge to main we only run the GCC job, to get coverage data uploaded to coveralls.io
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
@@ -17,10 +21,13 @@ jobs:
|
||||
steps:
|
||||
- name: Repository checkout
|
||||
uses: actions/checkout@v2
|
||||
if: github.event_name == 'pull_request' || matrix.run_phase == 'GCC'
|
||||
- name: Install build dependencies
|
||||
run: sudo -E .github/workflows/unit_tests.sh SETUP
|
||||
if: github.event_name == 'pull_request' || matrix.run_phase == 'GCC'
|
||||
- name: Build & test (${{ matrix.run_phase }})
|
||||
run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
|
||||
if: github.event_name == 'pull_request' || matrix.run_phase == 'GCC'
|
||||
- name: Coveralls
|
||||
if: matrix.run_phase == 'GCC' && github.repository == 'systemd/systemd'
|
||||
uses: coverallsapp/github-action@master
|
||||
|
||||
Reference in New Issue
Block a user